diff options
author | Grace Zhao <gracezrx@google.com> | 2023-08-30 23:54:01 -0700 |
---|---|---|
committer | Grace Zhao <gracezrx@google.com> | 2023-08-30 23:54:01 -0700 |
commit | 6293cd0a843b1e5b09086d9010ec863556d0c1ba (patch) | |
tree | 8834036305dca128017ee06f9b2d3d157da54c62 /icing/query/advanced_query_parser/query-visitor_test.cc | |
parent | 8c71e61d02944611249c892236e67c6acace8a2d (diff) | |
download | icing-6293cd0a843b1e5b09086d9010ec863556d0c1ba.tar.gz |
Update Icing from upstream.
Descriptions:
========================================================================
[fixit] Remove incorrect reserve usage for STL data structure
========================================================================
Move LiteIndex::SortHits() from the query path to the indexing path
========================================================================
Bug: 286418010
Bug: 297549761
Bug: 248295995
Change-Id: I46168178e0227451b0f7dbf394bb6cc5db94e1e8
Diffstat (limited to 'icing/query/advanced_query_parser/query-visitor_test.cc')
-rw-r--r-- | icing/query/advanced_query_parser/query-visitor_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/icing/query/advanced_query_parser/query-visitor_test.cc b/icing/query/advanced_query_parser/query-visitor_test.cc index d118691..59e924d 100644 --- a/icing/query/advanced_query_parser/query-visitor_test.cc +++ b/icing/query/advanced_query_parser/query-visitor_test.cc @@ -125,7 +125,9 @@ class QueryVisitorTest : public ::testing::TestWithParam<QueryType> { document_store_ = std::move(create_result.document_store); Index::Options options(index_dir_.c_str(), - /*index_merge_size=*/1024 * 1024); + /*index_merge_size=*/1024 * 1024, + /*lite_index_sort_at_indexing=*/true, + /*lite_index_sort_size=*/1024 * 8); ICING_ASSERT_OK_AND_ASSIGN( index_, Index::Create(options, &filesystem_, &icing_filesystem_)); |