diff options
author | Tim Barron <tjbarron@google.com> | 2021-01-14 20:53:07 +0000 |
---|---|---|
committer | Tim Barron <tjbarron@google.com> | 2021-01-14 20:53:07 +0000 |
commit | a34db390d80f862bfaaa49dea3605c5fec3bca3d (patch) | |
tree | 67a4a87803cf2b31619c3ddff3674967fc1461ce /icing/scoring/scoring-processor.h | |
parent | 59c2caa38fd8dca3760dad751f4f8e5de8be25f5 (diff) | |
download | icing-a34db390d80f862bfaaa49dea3605c5fec3bca3d.tar.gz |
Update Icing from upstream.
Change-Id: I43038a59e7170fb8ecbaf6098a37221b3682ce09
Diffstat (limited to 'icing/scoring/scoring-processor.h')
-rw-r--r-- | icing/scoring/scoring-processor.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/icing/scoring/scoring-processor.h b/icing/scoring/scoring-processor.h index 60c3b32..2289605 100644 --- a/icing/scoring/scoring-processor.h +++ b/icing/scoring/scoring-processor.h @@ -48,11 +48,14 @@ class ScoringProcessor { // num_to_score. The order of results is the same as DocHitInfos from // DocHitInfoIterator. // - // NOTE: if the scoring spec doesn't require a scoring strategy, all + // If necessary, query_term_iterators is used to compute the BM25F relevance + // score. NOTE: if the scoring spec doesn't require a scoring strategy, all // ScoredDocumentHits will be assigned a default score 0. std::vector<ScoredDocumentHit> Score( std::unique_ptr<DocHitInfoIterator> doc_hit_info_iterator, - int num_to_score); + int num_to_score, + std::unordered_map<std::string, std::unique_ptr<DocHitInfoIterator>>* + query_term_iterators = nullptr); private: explicit ScoringProcessor(std::unique_ptr<Scorer> scorer) |