aboutsummaryrefslogtreecommitdiff
path: root/icing/index/iterator/doc-hit-info-iterator-not.cc
diff options
context:
space:
mode:
authorTim Barron <tjbarron@google.com>2023-03-13 17:00:29 -0700
committerTim Barron <tjbarron@google.com>2023-03-14 08:41:33 -0700
commitd5c81ae0c41ae9c1aefb3601f3836570b9f686c7 (patch)
tree75040182238304328ac85e570c0baae90b7fe53e /icing/index/iterator/doc-hit-info-iterator-not.cc
parent3fe6aa4251989fb27863fdbf51e18d8c1f9e42dd (diff)
downloadicing-d5c81ae0c41ae9c1aefb3601f3836570b9f686c7.tar.gz
Update Icing from upstream.
Descriptions: ======================================================================== Cache an instance of UBreakIterator to reduce unnecessary creations. ======================================================================== Cap number of individual IntegerIndexStorages that IntegerIndex creates. ======================================================================== Change error in trimRightMostNode from Unimplemented to InvalidArgument. ======================================================================== Add detection for new language features of List Filters Query Language. ======================================================================== Add option to control threshold to rebuild index during optimize by flag ======================================================================== Add option to control use of namespace id to build urimapper by flag. ======================================================================== Enforce schema validation for joinable config. ======================================================================== Adopt bucket splitting for IntegerIndexStorage. ======================================================================== Implement bucket splitting function. ======================================================================== Add Icing initialization unit tests for QualifiedIdTypeJoinableIndex. ======================================================================== Add Icing schema change unit tests for QualifiedIdTypeJoinableIndex. ======================================================================== Add Icing optimization unit tests for QualifiedIdTypeJoinableIndex. ======================================================================== Integrate QualifiedIdTypeJoinableIndex into IcingSearchEngine. ======================================================================== Implement QualifiedIdJoinablePropertyIndexingHandler. ======================================================================== Change QualifiedIdTypeJoinableIndex to store raw qualified id string. ======================================================================== Pass info about unnormalized query terms through lexer/parser/visitor. ======================================================================== Bug: 208654892 Bug: 263890397 Bug: 259743562 Bug: 272145329 Bug: 227356108 Change-Id: I438a390ddda5673cf2b5781af502f2b7cfeaee74
Diffstat (limited to 'icing/index/iterator/doc-hit-info-iterator-not.cc')
-rw-r--r--icing/index/iterator/doc-hit-info-iterator-not.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/icing/index/iterator/doc-hit-info-iterator-not.cc b/icing/index/iterator/doc-hit-info-iterator-not.cc
index 1818f08..38b1ded 100644
--- a/icing/index/iterator/doc-hit-info-iterator-not.cc
+++ b/icing/index/iterator/doc-hit-info-iterator-not.cc
@@ -63,8 +63,8 @@ libtextclassifier3::Status DocHitInfoIteratorNot::Advance() {
libtextclassifier3::StatusOr<DocHitInfoIterator::TrimmedNode>
DocHitInfoIteratorNot::TrimRightMostNode() && {
// Don't generate suggestion if the last operator is NOT.
- return absl_ports::UnimplementedError(
- "Cannot trim right most node in NOT operator.");
+ return absl_ports::InvalidArgumentError(
+ "Cannot generate suggestion if the last term is NOT operator.");
}
int32_t DocHitInfoIteratorNot::GetNumBlocksInspected() const {