diff options
author | Tim Barron <tjbarron@google.com> | 2023-03-06 17:26:23 -0800 |
---|---|---|
committer | Tim Barron <tjbarron@google.com> | 2023-03-06 17:26:23 -0800 |
commit | 53032446fec369125a6dc47c9f66435e4a62410b (patch) | |
tree | 779ba434530b8af387bc1e2f9f37aca52e298b1d /icing/query/advanced_query_parser/query-visitor.cc | |
parent | 49064c458678781fbf3db256751658728dc87740 (diff) | |
download | icing-53032446fec369125a6dc47c9f66435e4a62410b.tar.gz |
Update Icing from upstream.
Descriptions:
======================================================================
Refactor IndexProcessor
======================================================================
Rename Joinable Cache as Joinable Index
======================================================================
Implement Optimize and Clear for QualifiedIdTypeJoinableCache
======================================================================
Add JoinablePropertyMetadata reverse lookup
======================================================================
Allow code creating LanguageSegmenter::Iterators to declare AccessType
======================================================================
Further codifies the escape behavior in the parser test
======================================================================
Bug: 263890397
Bug: 268680462
Bug: 270102295
Change-Id: I3233733b40e985e11c4a6d75c1528cd6a72c1173
Diffstat (limited to 'icing/query/advanced_query_parser/query-visitor.cc')
-rw-r--r-- | icing/query/advanced_query_parser/query-visitor.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/icing/query/advanced_query_parser/query-visitor.cc b/icing/query/advanced_query_parser/query-visitor.cc index 9df1264..a1a9c38 100644 --- a/icing/query/advanced_query_parser/query-visitor.cc +++ b/icing/query/advanced_query_parser/query-visitor.cc @@ -344,8 +344,10 @@ QueryVisitor::PopPendingIterator() { return CreateTermIterator(std::move(string_value)); } else { ICING_ASSIGN_OR_RETURN(QueryTerm text_value, PopPendingTextValue()); - ICING_ASSIGN_OR_RETURN(std::unique_ptr<Tokenizer::Iterator> token_itr, - tokenizer_.Tokenize(text_value.term)); + ICING_ASSIGN_OR_RETURN( + std::unique_ptr<Tokenizer::Iterator> token_itr, + tokenizer_.Tokenize(text_value.term, + LanguageSegmenter::AccessType::kForwardIterator)); std::string normalized_term; std::vector<std::unique_ptr<DocHitInfoIterator>> iterators; // The tokenizer will produce 1+ tokens out of the text. The prefix operator |