OpenSearch/docs/reference/migration/migrate_7_0/search.asciidoc

29 lines
904 B
Plaintext

[[breaking_70_search_changes]]
=== Search and Query DSL changes
==== Changes to queries
* The default value for `transpositions` parameter of `fuzzy` query
has been changed to `true`.
==== Adaptive replica selection enabled by default
Adaptive replica selection has been enabled by default. If you wish to return to
the older round robin of search requests, you can use the
`cluster.routing.use_adaptive_replica_selection` setting:
[source,js]
--------------------------------------------------
PUT /_cluster/settings
{
"transient": {
"cluster.routing.use_adaptive_replica_selection": false
}
}
--------------------------------------------------
// CONSOLE
=== `_search/scroll` 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.