Method DisjunctionMax
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
DisjunctionMax(IEnumerable<Query>, float)
Matches documents matching any of queries, scored by the best-scoring one
plus tieBreaker times the scores of the others. Use it to search the same
words in several fields without rewarding documents that repeat them everywhere.
public static DisjunctionMaxQuery DisjunctionMax(IEnumerable<Query> queries, float tieBreaker = 0)
Parameters
queriesIEnumerable<Query>The alternatives.
tieBreakerfloatWeight of the non-best scores, 0 (the default: only the best counts) to 1 (a plain sum).