Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/reference/elasticsearch/rest-apis/search-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ The overall structure of the profile response is as follows:
% TESTRESPONSE[s/"id": "\[q2aE02wS1R8qQFnYu6vDVQ\]\[my-index-000001\]\[0\]"/"id": $body.profile.shards.0.id/]
% TESTRESPONSE[s/"node_id": "q2aE02wS1R8qQFnYu6vDVQ",/"node_id": "$body.profile.shards.0.node_id",/]
% TESTRESPONSE[s/"query": \[\.\.\.\]/"query": $body.$_path/]
% TESTRESPONSE[s/"collector": \[\.\.\.\]/"collector": $body.$_path/]
% TESTRESPONSE[s/"collector": \[\.\.\.\]/"collector": $body.$_path/]
% TESTRESPONSE[s/"aggregations": \[\.\.\.\]/"aggregations": []/]
% TESTRESPONSE[s/"fetch": \{\.\.\.\}/"fetch": $body.$_path/]
% TESTRESPONSE[s/"fetch": \{\.\.\.\}/"fetch": $body.$_path/]

1. A profile is returned for each shard that participated in the response, and is identified by a unique ID.
2. If the query was run on the local cluster, the cluster name is left out of the composite id and is marked "(local)" here. For a profile running on a remote_cluster using cross-cluster search, the "id" value would be something like `[q2aE02wS1R8qQFnYu6vDVQ][remote1:my-index-000001][0]` and the "cluster" value would be `remote1`.
Expand Down Expand Up @@ -338,7 +338,7 @@ The `query` section contains detailed timing of the query tree executed by Lucen
% TESTRESPONSE[s/^/{\n"took": $body.took,\n"timed_out": $body.timed_out,\n"_shards": $body._shards,\n"hits": $body.hits,\n"profile": {\n"shards": [ {\n"id": "$body.profile.shards.0.id",\n"node_id": "$body.profile.shards.0.node_id",\n"shard_id": $body.profile.shards.0.shard_id,\n"index": "$body.profile.shards.0.index",\n"cluster": "(local)",\n"searches": [{\n/]
% TESTRESPONSE[s/]$/],"rewrite_time": $body.$_path, "collector": $body.$_path}], "aggregations": [], "fetch": $body.$_path}]}}/]
% TESTRESPONSE[s/(?>=[" ])\d+(\.\d+)?/$body.$_path/]
% TESTRESPONSE[s/"breakdown": \{\.\.\.\}/"breakdown": $body.$_path/]
% TESTRESPONSE[s/"breakdown": \{\.\.\.\}/"breakdown": $body.$_path/]

1. The breakdown timings are omitted for simplicity.

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/elasticsearch/rest-apis/search-suggesters.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ The response contains suggestions scored by the most likely spelling correction
}
```
% TESTRESPONSE[s/"_shards": \.\.\./"_shards": "$body._shards",/]
% TESTRESPONSE[s/"hits": \.\.\./"hits": "$body.hits",/]
% TESTRESPONSE[s/"hits": \.\.\./"hits": "$body.hits",/]
% TESTRESPONSE[s/"took": 3,/"took": "$body.took",/]

$$$_basic_phrase_suggest_api_parameters$$$
Expand Down Expand Up @@ -621,7 +621,7 @@ It returns this response:
}
}
```
% TESTRESPONSE[s/"hits": \.\.\./"hits": "$body.hits",/]
% TESTRESPONSE[s/"hits": \.\.\./"hits": "$body.hits",/]
% TESTRESPONSE[s/"took": 2,/"took": "$body.took",/]

::::{important}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ The API returns the following response. Note that the duplicate tokens for `fox`
}
```
% TESTRESPONSE[s/"tokenizer": .../"tokenizer": $body.detail.tokenizer/]
% TESTRESPONSE[s/"tokens": .../"tokens": $body.$_path/]
% TESTRESPONSE[s/"tokens": .../"tokens": $body.$_path/]

::::

Expand Down