Method AddTextField
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
AddTextField(string, bool, bool, string)
Adds a full-text field. Its values are split into terms by tokenizer
(default splits on whitespace and punctuation, lowercases, and drops very long tokens;
en_stem also applies English stemming; raw keeps the whole value as one term).
public SchemaBuilder AddTextField(string name, bool stored = false, bool fast = false, string tokenizer = "default")
Parameters
namestringField name.
storedboolReturn the original value in search hits.
fastboolAlso store as a fast field (untokenized), for sorting and aggregations.
tokenizerstringA built-in tokenizer (
default,raw,en_stem,whitespace) or the name of an analyzer added with AddAnalyzer(string, Analyzer).