From fb76fd157579c56cbd87fc8ed46e5701e1fe893e Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Wed, 24 Apr 2019 15:44:51 -0400 Subject: [PATCH] [DOCS] Specify IDs for Profile API sections (#41505) --- docs/java-rest/high-level/apis/search.asciidoc | 4 ++-- docs/reference/search/profile.asciidoc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/java-rest/high-level/apis/search.asciidoc b/docs/java-rest/high-level/apis/search.asciidoc index 5b42956d1194b..ef80d03038567 100644 --- a/docs/java-rest/high-level/apis/search.asciidoc +++ b/docs/java-rest/high-level/apis/search.asciidoc @@ -448,7 +448,7 @@ include-tagged::{doc-tests}/SearchDocumentationIT.java[search-request-profiling- <4> Retrieve the profile results for the sub-queries (if any) The Rest API documentation contains more information about {ref}/_profiling_queries.html[Profiling Queries] with -a description of the {ref}/_profiling_queries.html#_literal_query_literal_section[query profiling information] +a description of the {ref}/_profiling_queries.html#profile-query-section[query profiling information] The `QueryProfileShardResult` also gives access to the profiling information for the Lucene collectors: @@ -462,7 +462,7 @@ include-tagged::{doc-tests}/SearchDocumentationIT.java[search-request-profiling- <4> Retrieve the profile results for the sub-collectors (if any) The Rest API documentation contains more information about profiling information -{ref}/_profiling_queries.html#_literal_collectors_literal_section[for Lucene collectors]. +{ref}/_profiling_queries.html#profile-collectors-section[for Lucene collectors]. In a very similar manner to the query tree execution, the `QueryProfileShardResult` objects gives access to the detailed aggregations tree execution: diff --git a/docs/reference/search/profile.asciidoc b/docs/reference/search/profile.asciidoc index 1c85314803fcf..ed36650583ad0 100644 --- a/docs/reference/search/profile.asciidoc +++ b/docs/reference/search/profile.asciidoc @@ -219,6 +219,7 @@ sufficient to see that a particular component of a query is slow, and not necess the `advance` phase of that query is the cause, for example. ======================================= +[[profile-query-section]] ==== `query` Section The `query` section contains detailed timing of the query tree executed by Lucene on a particular shard. @@ -379,6 +380,7 @@ The meaning of the stats are as follows: means the `nextDoc()` method was called on two different documents. This can be used to help judge how selective queries are, by comparing counts between different query components. +[[profile-collectors-section]] ==== `collectors` Section The Collectors portion of the response shows high-level execution details. Lucene works by defining a "Collector"