Skip to content

Commit ff97ca0

Browse files
committed
fixing annotation
1 parent 0a81b87 commit ff97ca0

File tree

1 file changed

+3
-5
lines changed
  • docs/reference/elasticsearch/index-settings

1 file changed

+3
-5
lines changed

docs/reference/elasticsearch/index-settings/sorting.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,9 @@ GET /events/_search
152152
"track_total_hits": false
153153
}
154154
```
155-
% TEST[continued]
156155

157156
1. The index sort will be used to rank the top documents and each segment will early terminate the collection after the first 10 matches.
158-
157+
% TEST[continued]
159158

160159
This time, Elasticsearch will not try to count the number of documents and will be able to terminate the query as soon as N documents have been collected per segment.
161160

@@ -170,11 +169,10 @@ This time, Elasticsearch will not try to count the number of documents and will
170169
"timed_out": false
171170
}
172171
```
173-
% TESTRESPONSE[s/"_shards": .../"_shards": "$body._shards",/]
174-
% TESTRESPONSE[s/"took": 20,/"took": "$body.took",/]
175172

176173
1. The total number of hits matching the query is unknown because of early termination.
177-
174+
% TESTRESPONSE[s/"_shards": .../"_shards": "$body._shards",/]
175+
% TESTRESPONSE[s/"took": 20,/"took": "$body.took",/]
178176

179177
::::{note}
180178
Aggregations will collect all documents that match the query regardless of the value of `track_total_hits`

0 commit comments

Comments
 (0)