Class Document
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
The stored fields of a search hit. Only fields marked stored in the schema are present.
Every field can hold several values; the Get* methods return the first one.
public sealed class Document
- Inheritance
-
Document
- Inherited Members
Properties
- FieldNames
Names of the fields present in this document.
Methods
- Contains(string)
Whether the document has at least one value for
field.
- GetBool(string)
First value of a bool field, or null if absent.
- GetBytes(string)
First value of a bytes field, or null if absent.
- GetDate(string)
First value of a date field (UTC), or null if absent.
- GetF64(string)
First value of an f64 field, or null if absent.
- GetI64(string)
First value of an i64 field, or null if absent.
- GetIpAddress(string)
First value of an IP address field, or null if absent. IPv4 addresses come back as IPv4.
- GetString(string)
First value of a text field, or null if absent.
- GetStrings(string)
All values of a text field.
- GetU64(string)
First value of a u64 field, or null if absent.
- GetValues(string)
All values of
fieldas raw JSON elements; empty if absent.
- ToJson()
The document as JSON:
{"field": [value, ...], ...}.
- ToString()
Returns a string that represents the current object.