Table of Contents

Method AddIpAddressField

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

AddIpAddressField(string, bool, bool, bool)

Adds an IP address field. In JSON documents, values are strings like 192.168.0.1 or 2001:db8::1; IPv4 addresses are stored as IPv4-mapped IPv6 and returned as IPv4. Query with Term(string, IPAddress) and ranges.

public SchemaBuilder AddIpAddressField(string name, bool stored = false, bool indexed = true, bool fast = false)

Parameters

name string

Field name.

stored bool

Return the value in search hits.

indexed bool

Make the field searchable (term and range queries).

fast bool

Add a fast field, for sorting and aggregations.

Returns

SchemaBuilder