Table of Contents

Class MoreLikeThisOptions

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

How MoreLikeThis(Document, MoreLikeThisOptions?) picks terms from the example document. Null properties keep Tantivy's defaults.

public sealed class MoreLikeThisOptions
Inheritance
MoreLikeThisOptions
Inherited Members

Properties

BoostFactor

Boosts each term by its relative TF-IDF weight times this factor (default 1).

MaxDocFrequency

Ignore terms found in more documents than this (default: no limit).

MaxQueryTerms

Maximum number of terms in the generated query (default 25).

MaxWordLength

Ignore words longer than this many characters (default: no limit).

MinDocFrequency

Ignore terms found in fewer documents than this (Tantivy default 5). Lower it for small indexes.

MinTermFrequency

Ignore terms occurring fewer times than this in the example document (default 2).

MinWordLength

Ignore words shorter than this many characters (default: no limit).

StopWords

Words never used as query terms (default none).