Method AddDateField
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
AddDateField(string, bool, bool, bool)
Adds a date field. In JSON documents, dates are RFC 3339 strings with an offset
(for example 2024-05-01T12:00:00Z); use DateTimeOffset or UTC
DateTime values when adding objects. Precision is seconds.
public SchemaBuilder AddDateField(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.