aboutsummaryrefslogtreecommitdiff
path: root/icing/index/lite
diff options
context:
space:
mode:
authorTim Barron <tjbarron@google.com>2020-12-09 04:46:41 +0000
committerTim Barron <tjbarron@google.com>2020-12-09 04:53:04 +0000
commit282a5708af10879b12a09a59ad5bbfa253b1e92a (patch)
treee54fd6ebc322a8983a707b3bc05d52faf48ef22f /icing/index/lite
parent1ae91ee03a08a4f0391f0f90e2797fb3c2e02960 (diff)
downloadicing-282a5708af10879b12a09a59ad5bbfa253b1e92a.tar.gz
Update Icing from upstream.
Change-Id: I662cd2f97794722eca9cc43b73549babed884be4
Diffstat (limited to 'icing/index/lite')
-rw-r--r--icing/index/lite/lite-index.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/icing/index/lite/lite-index.cc b/icing/index/lite/lite-index.cc
index 89240ee..ea4bcaf 100644
--- a/icing/index/lite/lite-index.cc
+++ b/icing/index/lite/lite-index.cc
@@ -448,7 +448,7 @@ uint32_t LiteIndex::Seek(uint32_t term_id) {
// Binary search for our term_id. Make sure we get the first
// element. Using kBeginSortValue ensures this for the hit value.
TermIdHitPair term_id_hit_pair(
- term_id, Hit(Hit::kMaxDocumentIdSortValue, Hit::kMaxHitScore));
+ term_id, Hit(Hit::kMaxDocumentIdSortValue, Hit::kDefaultHitScore));
const TermIdHitPair::Value* array =
hit_buffer_.array_cast<TermIdHitPair::Value>();