diff options
Diffstat (limited to 'proto/icing/proto/logging.proto')
-rw-r--r-- | proto/icing/proto/logging.proto | 53 |
1 files changed, 9 insertions, 44 deletions
diff --git a/proto/icing/proto/logging.proto b/proto/icing/proto/logging.proto index 0a7c4a6..29f7f80 100644 --- a/proto/icing/proto/logging.proto +++ b/proto/icing/proto/logging.proto @@ -23,7 +23,7 @@ option java_multiple_files = true; option objc_class_prefix = "ICNG"; // Stats of the top-level function IcingSearchEngine::Initialize(). -// Next tag: 12 +// Next tag: 11 message InitializeStatsProto { // Overall time used for the function call. optional int32 latency_ms = 1; @@ -46,9 +46,6 @@ message InitializeStatsProto { // Random I/O errors. IO_ERROR = 4; - - // The document log is using legacy format. - LEGACY_DOCUMENT_LOG_FORMAT = 5; } // Possible recovery causes for document store: @@ -95,10 +92,6 @@ message InitializeStatsProto { // Number of schema types currently in schema store. optional int32 num_schema_types = 10; - - // Number of consecutive initialization failures that immediately preceded - // this initialization. - optional int32 num_previous_init_failures = 11; } // Stats of the top-level function IcingSearchEngine::Put(). @@ -121,10 +114,12 @@ message PutDocumentStatsProto { optional int32 document_size = 5; message TokenizationStats { + // Whether the number of tokens to be indexed exceeded the max number of + // tokens per document. + optional bool exceeded_max_token_num = 2; + // Number of tokens added to the index. optional int32 num_tokens_indexed = 1; - - reserved 2; } optional TokenizationStats tokenization_stats = 6; } @@ -186,7 +181,8 @@ message QueryStatsProto { } // Stats of the top-level functions IcingSearchEngine::Delete, -// IcingSearchEngine::DeleteByNamespace, IcingSearchEngine::DeleteBySchemaType. +// IcingSearchEngine::DeleteByNamespace, IcingSearchEngine::DeleteBySchemaType, +// IcingSearchEngine::DeleteByQuery. // Next tag: 4 message DeleteStatsProto { // Overall time used for the function call. @@ -200,10 +196,8 @@ message DeleteStatsProto { // Delete one document. SINGLE = 1; - // Delete by query. This value is deprecated. - // IcingSearchEngine::DeleteByQuery will return a DeleteByQueryStatsProto - // rather than a DeleteStatsProto. - DEPRECATED_QUERY = 2 [deprecated = true]; + // Delete by query. + QUERY = 2; // Delete by namespace. NAMESPACE = 3; @@ -217,32 +211,3 @@ message DeleteStatsProto { // Number of documents deleted by this call. optional int32 num_documents_deleted = 3; } - -// Stats of the top-level functions IcingSearchEngine::DeleteByQuery. -// Next tag: 9 -message DeleteByQueryStatsProto { - // Overall time used for the function call. - optional int32 latency_ms = 1; - - // Number of documents deleted by this call. - optional int32 num_documents_deleted = 2; - - // The UTF-8 length of the query string - optional int32 query_length = 3; - - // Number of terms in the query string. - optional int32 num_terms = 4; - - // Number of namespaces filtered. - optional int32 num_namespaces_filtered = 5; - - // Number of schema types filtered. - optional int32 num_schema_types_filtered = 6; - - // Time used to parse the query, including 2 parts: tokenizing and - // transforming tokens into an iterator tree. - optional int32 parse_query_latency_ms = 7; - - // Time used to delete each document. - optional int32 document_removal_latency_ms = 8; -} |