mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
4b9664beeb
This is much more fiddly than you'd expect it to be because of the way position_offset_gap is applied in StringFieldMapper. Instead of setting the default to 100 its simpler to make sure that all the analyzers default to 100 and that StringFieldMapper doesn't override the default unless the user specifies something different. Unless the index was created before 2.1, in which case the old default of 0 has to take. Also postition_offset_gaps less than 0 aren't allowed at all. New tests test that: 1. the new default doesn't match phrases across values with reasonably low slop (5) 2. the new default doest match phrases across values with reasonably high slop (50) 3. you can override the value and phrases work as you'd expect 4. if you leave the value undefined in the mapping and define it on a custom analyzer the the value from the custom analyzer shines through Closes #7268
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
[[breaking-changes-2.0]]
|
|
== Breaking changes in 2.0
|
|
|
|
This section discusses the changes that you need to be aware of when migrating
|
|
your application to Elasticsearch 2.0.
|
|
|
|
[float]
|
|
=== Indices created before 0.90
|
|
|
|
Elasticsearch 2.0 can read indices created in version 0.90 and above. If any
|
|
of your indices were created before 0.90 you will need to upgrade to the
|
|
latest 1.x version of Elasticsearch first, in order to upgrade your indices or
|
|
to delete the old indices. Elasticsearch will not start in the presence of old
|
|
indices.
|
|
|
|
[float]
|
|
=== Elasticsearch migration plugin
|
|
|
|
We have provided the https://github.com/elastic/elasticsearch-migration[Elasticsearch migration plugin]
|
|
to help you detect any issues that you may have when upgrading to
|
|
Elasticsearch 2.0. Please install and run the plugin *before* upgrading.
|
|
|
|
include::migrate_2_0/removals.asciidoc[]
|
|
|
|
include::migrate_2_0/network.asciidoc[]
|
|
|
|
include::migrate_2_0/striping.asciidoc[]
|
|
|
|
include::migrate_2_0/mapping.asciidoc[]
|
|
|
|
include::migrate_2_0/crud.asciidoc[]
|
|
|
|
include::migrate_2_0/query_dsl.asciidoc[]
|
|
|
|
include::migrate_2_0/search.asciidoc[]
|
|
|
|
include::migrate_2_0/aggs.asciidoc[]
|
|
|
|
include::migrate_2_0/parent_child.asciidoc[]
|
|
|
|
include::migrate_2_0/scripting.asciidoc[]
|
|
|
|
include::migrate_2_0/index_apis.asciidoc[]
|
|
|
|
include::migrate_2_0/snapshot_restore.asciidoc[]
|
|
|
|
include::migrate_2_0/packaging.asciidoc[]
|
|
|
|
include::migrate_2_0/settings.asciidoc[]
|
|
|
|
include::migrate_2_0/stats.asciidoc[]
|
|
|
|
include::migrate_2_0/java.asciidoc[]
|