BM25F Only
Keep the default (EditDistance, reranked) for nearly all use cases: it counts, so the count, the
facets and the list agree. Leave it only where you want relevance ranking without a count, such as
long natural-language queries over documents. In Bm25f nothing is counted.
BM25F alone
query.Mode = SearchMode.Bm25f;
query.Ranking.Rerank = false;{ "text": "search terms", "maxNumberOfRecordsToReturn": 50, "mode": "Bm25f", "ranking": { "rerank": false } }This is what EnableCoverage = false was on Indx 5.
Alternative: BM25F, reranked
To take BM25F's best, with no word count, and let the reranker order them (the best up to the candidate bound, cut to the rows asked for):
query.Mode = SearchMode.Bm25f; // Ranking.Rerank is true by defaultAlternative: Edit distance, not reranked
To search as you type with a word count and without the cost of reranking, take the documents holding every query word exactly or within an edit, ordered exact first and by BM25F inside each level:
query.Mode = SearchMode.EditDistance; // the default
query.Ranking.Rerank = false;Alternative: Every Rung
To have the records a word reaches within an edit beside those holding it as typed, the nearer ranked first:
query.Match.Rungs = Rungs.All;