Table of Contents

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

name string

Field name.

stored bool

Return the original value in search hits.

fast bool

Also store as a fast field (untokenized), for sorting and aggregations.

tokenizer string

A built-in tokenizer (default, raw, en_stem, whitespace) or the name of an analyzer added with AddAnalyzer(string, Analyzer).

Returns

SchemaBuilder