aboutsummaryrefslogtreecommitdiff
path: root/icing/index/string-section-indexing-handler.cc
diff options
context:
space:
mode:
authorTim Barron <tjbarron@google.com>2023-03-16 10:24:03 -0700
committerTim Barron <tjbarron@google.com>2023-03-16 10:24:03 -0700
commitf3155ae11285c16d8d9de56b1ec1a1e0def2cf62 (patch)
tree15144ab3f0b6d10fe6f5c3039b4b31e5d4d41170 /icing/index/string-section-indexing-handler.cc
parentd5c81ae0c41ae9c1aefb3601f3836570b9f686c7 (diff)
downloadicing-f3155ae11285c16d8d9de56b1ec1a1e0def2cf62.tar.gz
Update Icing from upstream.
Descriptions: ======================================================================== Set overall index latency ======================================================================== Change GetUsageScores return type to optional. ======================================================================== Upstream fix to thread-safety annotation for cached_break_iterator_ ======================================================================== Bug: 259744228 Change-Id: Ia7a5032fd7655db773e311173f5735e4451b30c1
Diffstat (limited to 'icing/index/string-section-indexing-handler.cc')
-rw-r--r--icing/index/string-section-indexing-handler.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/icing/index/string-section-indexing-handler.cc b/icing/index/string-section-indexing-handler.cc
index 83a2687..a992568 100644
--- a/icing/index/string-section-indexing-handler.cc
+++ b/icing/index/string-section-indexing-handler.cc
@@ -121,9 +121,7 @@ libtextclassifier3::Status StringSectionIndexingHandler::Handle(
}
if (put_document_stats != nullptr) {
- // TODO(b/259744228): switch to set individual index latency.
- put_document_stats->set_index_latency_ms(
- index_timer->GetElapsedMilliseconds());
+ // TODO(b/259744228): set term index latency.
put_document_stats->mutable_tokenization_stats()->set_num_tokens_indexed(
num_tokens);
}