-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking changes in Elasticsearch 1.0 #39
Comments
Nested settings instead of flattened keysSettings responses now return nested hashes instead of flattened keys. Settings requests support both formats. The old behavior can be enabled with the This broke Elastomer tests and could break settings management code in apps and puppet. |
The field query has been removedES doc recommends using get_mapping nests mappings under a "mappings" elementCode expecting the |
response['ok'] and response['created'] are not equivalentIn the 1.0 index api response, the Don't replace |
field values in restricted fields queries are always arraysIn the 1.0 search response, when using Pre-1.0:
Post-1.0:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_return_values.html |
The fields parameter can no longer return object fieldsIn 1.0, an object mapping cannot be used in the fields parameter. For example, given a mapping with the following fields:
In 0.90 it was possible to use
It is now necessary to use source filtering via the http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_return_values.html |
Routing is now required for single-shard APIsPrior to 1.0, some APIs that only hit a single shard (like get) did not require a routing parameter even if the mapping specifies that routing is required. In 1.x those APIs fail if a routing parameter is not supplied. |
Elasticsearch 1.0 breaks a bunch of stuff. Current list of changes is at http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/breaking-changes.html.
As far as I can tell, the following will require changes to Elastomer or github.com:
New stats url format
The stats urls now rely on url path instead of parameters for filtering. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_stats_and_info_apis.html
New admin api url formats
Some of the admin url formats have changed. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_indices_apis.html
Cannot index document with type wrapper
I don't think we ever did this, but if we did it's not allowed by default anymore. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_index_request.html
All search apis take a :query element in the body
Yay! This was the source of much ambiguity (and a few Elastomer bugs). http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_search_requests.html
Top level :filter element renamed to :post_filter
We used to use this heavily in dotcom, less so now. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_search_requests.html
New multifield syntax
I believe we use these in a few places in dotcom. Minor syntax change. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_multi_fields.html
No english stopwords in standard and pattern analyzers
If we want to continue using stopwords, we'll have to add a stopword filter manually. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_stopwords.html
New fuzzy query parameters
I think we use fuzzy queries for autocomplete queries. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_parameters.html
No more
ok
elements in responsesI think haystack relies on this, and maybe some tests and other things? http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/_return_values.html
That's what stood out to me. Everyone working with ES should take a look and see if they'll have to change anything.
/cc @github/search
The text was updated successfully, but these errors were encountered: