diff --git a/core/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java b/core/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java index e62a38a5651..643344bb3bb 100644 --- a/core/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java +++ b/core/src/test/java/org/elasticsearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilderTests.java @@ -43,7 +43,6 @@ import static org.mockito.Mockito.when; public class AdjacencyMatrixAggregationBuilderTests extends ESTestCase { - public void testFilterSizeLimitation() throws Exception { // filter size grater than max size should thrown a exception QueryShardContext queryShardContext = mock(QueryShardContext.class); diff --git a/docs/reference/migration/migrate_7_0/search.asciidoc b/docs/reference/migration/migrate_7_0/search.asciidoc index e33a172ca27..a2e5d1ccf85 100644 --- a/docs/reference/migration/migrate_7_0/search.asciidoc +++ b/docs/reference/migration/migrate_7_0/search.asciidoc @@ -22,7 +22,14 @@ PUT /_cluster/settings -------------------------------------------------- // CONSOLE -=== `_search/scroll` returns `400` for invalid requests +==== Search API returns `400` for invalid requests -The `/_search/scroll` endpoint returns `400 - Bad request` when the request invalid, while it would previously -return `500 - Internal Server Error` in such case. +The Search API returns `400 - Bad request` while it would previously return +`500 - Internal Server Error` in the following cases of invalid request: + +* the result window is too large +* sort is used in combination with rescore +* the rescore window is too large +* the number of slices is too large +* keep alive for scroll is too large +* number of filters in the adjacency matrix aggregation is too large