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
namestringField name.
storedboolReturn the value in search hits.
indexedboolMake the field searchable (term and range queries).
fastboolAdd a fast field, for sorting and aggregations.