Skip to content

Commit 37e275f

Browse files
authored
[DOCS] Specify IDs for Profile API sections (#41505)
1 parent 47d9ad7 commit 37e275f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/java-rest/high-level/search/search.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ include-tagged::{doc-tests-file}[{api}-request-profiling-queries-results]
431431
<4> Retrieve the profile results for the sub-queries (if any)
432432

433433
The Rest API documentation contains more information about {ref}/_profiling_queries.html[Profiling Queries] with
434-
a description of the {ref}/_profiling_queries.html#_literal_query_literal_section[query profiling information]
434+
a description of the {ref}/_profiling_queries.html#profile-query-section[query profiling information]
435435

436436
The `QueryProfileShardResult` also gives access to the profiling information for the Lucene collectors:
437437

@@ -445,7 +445,7 @@ include-tagged::{doc-tests-file}[{api}-request-profiling-queries-collectors]
445445
<4> Retrieve the profile results for the sub-collectors (if any)
446446

447447
The Rest API documentation contains more information about profiling information
448-
{ref}/_profiling_queries.html#_literal_collectors_literal_section[for Lucene collectors].
448+
{ref}/_profiling_queries.html#profile-collectors-section[for Lucene collectors].
449449

450450
In a very similar manner to the query tree execution, the `QueryProfileShardResult` objects gives access
451451
to the detailed aggregations tree execution:

docs/reference/search/profile.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ sufficient to see that a particular component of a query is slow, and not necess
221221
the `advance` phase of that query is the cause, for example.
222222
=======================================
223223

224+
[[profile-query-section]]
224225
==== `query` Section
225226

226227
The `query` section contains detailed timing of the query tree executed by Lucene on a particular shard.
@@ -371,6 +372,7 @@ The meaning of the stats are as follows:
371372
means the `nextDoc()` method was called on two different documents. This can be used to help judge
372373
how selective queries are, by comparing counts between different query components.
373374

375+
[[profile-collectors-section]]
374376
==== `collectors` Section
375377

376378
The Collectors portion of the response shows high-level execution details. Lucene works by defining a "Collector"

0 commit comments

Comments
 (0)