Skip to content

Commit 3466684

Browse files
committed
[DOCS] Clarify migrate guide and search request validation
Relates to #26811
1 parent c3e2bdf commit 3466684

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

core/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343

4444
public class AdjacencyMatrixAggregationBuilderTests extends ESTestCase {
4545

46-
4746
public void testFilterSizeLimitation() throws Exception {
4847
// filter size grater than max size should thrown a exception
4948
QueryShardContext queryShardContext = mock(QueryShardContext.class);

docs/reference/migration/migrate_7_0/search.asciidoc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ PUT /_cluster/settings
2222
--------------------------------------------------
2323
// CONSOLE
2424

25-
=== `_search/scroll` returns `400` for invalid requests
25+
==== Search API returns `400` for invalid requests
2626

27-
The `/_search/scroll` endpoint returns `400 - Bad request` when the request invalid, while it would previously
28-
return `500 - Internal Server Error` in such case.
27+
The Search API returns `400 - Bad request` while it would previously return
28+
`500 - Internal Server Error` in the following cases of invalid request:
29+
30+
* the result window is too large
31+
* sort is used in combination with rescore
32+
* the rescore window is too large
33+
* the number of slices is too large
34+
* keep alive for scroll is too large
35+
* number of filters in the adjacency matrix aggregation is too large

0 commit comments

Comments
 (0)