-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Deprecate extracting _routing and _id from document fields #6730
Comments
+1 |
+1 |
This change needs to be made in a backwards compatible way. From 2.0:
From 3.0:
Users should still be able to set |
We should deprecate extracting the |
Also see #5558 |
…exes _id and _routing now no longer support the 'path' setting on indexes created with 2.0. Indexes created before 2.0 still support this setting for backcompat. closes elastic#6730
The bulk API supports a specified `_routing` value for document placement within a shard in an index. This should be exposed for custom routing for aliases, filtering, etc. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-routing This also respects the move away from the routing parameter within the event as defined in: elastic/elasticsearch#6730
The bulk API supports a specified `_routing` value for document placement within a shard in an index. This should be exposed for custom routing for aliases, filtering, etc. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-routing This also respects the move away from the routing parameter within the event as defined in: elastic/elasticsearch#6730
Can someone confirm me that this is why |
This change was made only to master. As far as I can tell, |
I had to dig through the bloat over internet in order to get to this information. You should really DOCUMENT that there will be no substitution for |
This is a follow up to elastic#8143 and elastic#6730 for _timestamp. It removes support for `path`, as well as any field type settings, and enables docvalues for _timestamp, for 2.0. Users who need to adjust these settings can use a date field.
is there an alternative to using your own ID to avoid duplicate record publishing |
@itsnavee No, there isn't. In the future please ask questions at discuss.elastic.co as we want to keep this repo about feature requests and bug reports. |
Currently routing and ID values can be passed in the query string and url respectively, but they can also be extracted from fields within the document.
This has a significant performance impact because each doc needs to be parsed on the node which receives the index/get/update/delete request in order to know which node should handle the request.
On top of that, there are clashes between (eg) routing values set in fields and parent settings.
We should deprecate the functionality to extract these values from fields, and make it the responsibility of the client code instead.
It should still be possible to set
_routing
to required. Perhaps we should set this automatically if the user ever passes in a routing or parent value at index time?Relates to #8870
The text was updated successfully, but these errors were encountered: