mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
This improves the way similarities are plugged in in order to: - reject the classic similarity on 7.x indices and emit a deprecation warning otherwise - reject unkwown parameters on 7.x indices and emit a deprecation warning otherwise Even though this breaks the plugin API, I'd like to backport to 7.x so that users can get deprecation warnings when they are doing something that will become unsupported in the future. Closes #23208 Closes #29035
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
[[breaking_70_mappings_changes]]
|
|
=== Mapping changes
|
|
|
|
==== The `_all` meta field is removed
|
|
|
|
The `_all` field deprecated in 6 have now been removed.
|
|
|
|
==== The `_default_` mapping is no longer allowed
|
|
|
|
The `_default_` mapping has been deprecated in 6.0 and is now no longer allowed
|
|
in 7.0. Trying to configure a `_default_` mapping on 7.x indices will result in
|
|
an error.
|
|
|
|
==== `index_options` for numeric fields has been removed
|
|
|
|
The `index_options` field for numeric fields has been deprecated in 6 and has now been removed.
|
|
|
|
==== Limiting the number of `nested` json objects
|
|
|
|
To safeguard against out of memory errors, the number of nested json objects within a single
|
|
document across all fields has been limited to 10000. This default limit can be changed with
|
|
the index setting `index.mapping.nested_objects.limit`.
|
|
|
|
==== The `update_all_types` option has been removed
|
|
|
|
This option is useless now that all indices have at most one type.
|
|
|
|
=== The `classic` similarity has been removed
|
|
|
|
The `classic` similarity relied on coordination factors for scoring to be good
|
|
in presence of stopwords in the query. This feature has been removed from
|
|
Lucene, which means that the `classic` similarity now produces scores of lower
|
|
quality. It is advised to switch to `BM25` instead, which is widely accepted
|
|
as a better alternative.
|
|
|
|
=== Similarities fail when unsupported options are provided
|
|
|
|
An error will now be thrown when unknown configuration options are provided
|
|
to similarities. Such unknown parameters were ignored before.
|