2016-09-08 09:37:36 -04:00
|
|
|
[[breaking_60_search_changes]]
|
|
|
|
=== Search and Query DSL changes
|
|
|
|
|
|
|
|
==== Changes to queries
|
|
|
|
|
|
|
|
* The `collect_payloads` parameter of the `span_near` query has been removed. Payloads will be
|
|
|
|
loaded when needed.
|
2016-11-15 12:36:57 -05:00
|
|
|
|
|
|
|
* Queries on boolean fields now strictly parse boolean-like values. This means
|
|
|
|
only the strings `"true"` and `"false"` will be parsed into their boolean
|
|
|
|
counterparts. Other strings will cause an error to be thrown.
|
2016-11-22 11:22:33 -05:00
|
|
|
|
2016-11-29 14:05:04 -05:00
|
|
|
* The `in` query (a synonym for the `terms` query) has been removed
|
|
|
|
|
|
|
|
* The `geo_bbox` query (a synonym for the `geo_bounding_box` query) has been removed
|
|
|
|
|
|
|
|
* The `mlt` query (a synonym for the `more_like_this` query) has been removed
|
|
|
|
|
|
|
|
* The `fuzzy_match` and `match_fuzzy` query (synonyma for the `match` query) have been removed
|
2016-11-22 11:22:33 -05:00
|
|
|
|
2016-11-30 09:29:09 -05:00
|
|
|
* The `terms` query now always returns scores equal to `1` and is not subject to
|
|
|
|
`indices.query.bool.max_clause_count` anymore.
|
|
|
|
|
2016-11-30 13:37:01 -05:00
|
|
|
* The deprecated `indices` query has been removed.
|
|
|
|
|
2016-12-12 06:37:12 -05:00
|
|
|
* Support for empty query objects (`{ }`) has been removed from the query DSL.
|
|
|
|
An error is thrown whenever an empty query object is provided.
|
|
|
|
|
2017-01-03 07:36:42 -05:00
|
|
|
* The deprecated `minimum_number_should_match` parameter in the `bool` query has
|
|
|
|
been removed, use `minimum_should_match` instead.
|
|
|
|
|
2017-01-23 11:57:43 -05:00
|
|
|
* The `query_string` query now correctly parses the maximum number of
|
|
|
|
states allowed when
|
|
|
|
"https://en.wikipedia.org/wiki/Powerset_construction#Complexity[determinizing]"
|
|
|
|
a regex as `max_determinized_states` instead of the typo
|
|
|
|
`max_determined_states`.
|
|
|
|
|
2017-02-03 10:49:01 -05:00
|
|
|
* For `geo_distance` queries, sorting, and aggregations the `sloppy_arc` and `factor` options
|
|
|
|
have been removed from the `distance_type` parameter.
|
|
|
|
|
2016-11-22 11:22:33 -05:00
|
|
|
==== Search shards API
|
|
|
|
|
|
|
|
The search shards API no longer accepts the `type` url parameter, which didn't
|
|
|
|
have any effect in previous versions.
|
2017-01-16 08:27:55 -05:00
|
|
|
|
|
|
|
==== Changes to the Profile API
|
|
|
|
|
|
|
|
* The `"time"` field showing human readable timing output has been replaced by the `"time_in_nanos"`
|
|
|
|
field which displays the elapsed time in nanoseconds. The `"time"` field can be turned on by adding
|
|
|
|
`"?human=true"` to the request url. It will display a rounded, human readable time value.
|
2017-01-30 05:08:49 -05:00
|
|
|
|
|
|
|
==== Scoring changes
|
|
|
|
|
2017-01-30 05:56:40 -05:00
|
|
|
===== Query normalization
|
2017-01-30 05:08:49 -05:00
|
|
|
|
|
|
|
Query normalization has been removed. This means that the TF-IDF similarity no
|
|
|
|
longer tries to make scores comparable across queries and that boosts are now
|
|
|
|
integrated into scores as simple multiplicative factors.
|
|
|
|
|
|
|
|
Other similarities are not affected as they did not normalize scores and
|
|
|
|
already integrated boosts into scores as multiplicative factors.
|
|
|
|
|
|
|
|
See https://issues.apache.org/jira/browse/LUCENE-7347[`LUCENE-7347`] for more
|
|
|
|
information.
|
|
|
|
|
2017-01-30 05:56:40 -05:00
|
|
|
===== Coordination factors
|
2017-01-30 05:08:49 -05:00
|
|
|
|
|
|
|
Coordination factors have been removed from the scoring formula. This means that
|
|
|
|
boolean queries no longer score based on the number of matching clauses.
|
|
|
|
Instead, they always return the sum of the scores of the matching clauses.
|
|
|
|
|
|
|
|
As a consequence, use of the TF-IDF similarity is now discouraged as this was
|
|
|
|
an important component of the quality of the scores that this similarity
|
|
|
|
produces. BM25 is recommended instead.
|
|
|
|
|
|
|
|
See https://issues.apache.org/jira/browse/LUCENE-7347[`LUCENE-7347`] for more
|
|
|
|
information.
|