[DOCS] Clarify migrate guide and search request validation

Relates to  #26811
This commit is contained in:
javanna 2017-10-31 12:36:00 +01:00 committed by Luca Cavanna
parent c3e2bdf20c
commit 34666844b3
2 changed files with 10 additions and 4 deletions

View File

@ -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);

View File

@ -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