Table of Contents

Method Analyze

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

Analyze(string, string)

Runs text through a tokenizer of this index and returns the resulting terms, to check what a field indexes or how query text is analyzed.

public IReadOnlyList<string> Analyze(string tokenizer, string text)

Parameters

tokenizer string

A built-in tokenizer or a custom analyzer of the schema (see Analyzers).

text string

The text to analyze.

Returns

IReadOnlyList<string>

Exceptions

TantivyException

With InvalidArgument if there is no such tokenizer.