Table of Contents

Method AddFacetField

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

AddFacetField(string, bool)

Adds a facet field: hierarchical category paths like /genre/fiction/classic, used for filtering (Facet(string, string)) and counting (FacetRequest). In JSON documents a value is a path string, or an array of them for several categories. Paths start with /; a / inside a segment is escaped as /. Facet fields are always indexed and fast.

public SchemaBuilder AddFacetField(string name, bool stored = false)

Parameters

name string

Field name.

stored bool

Return the paths in search hits.

Returns

SchemaBuilder