-
Notifications
You must be signed in to change notification settings - Fork 307
Support routing option for documents #64
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
Conversation
@@ -250,7 +254,7 @@ def register | |||
client_settings["network.host"] = @bind_host if @bind_host | |||
client_settings["transport.tcp.port"] = @bind_port if @bind_port | |||
client_settings["client.transport.sniff"] = @sniffing | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your editor appears to have made a bunch of whitespace changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I noticed that too and was unhappy. Do I need to back them out? Should be easy to do.
Also, this was first requested back in JIRA and is finally implemented. Though, not specifically for space optimization as originally mentioned. |
Can you fix the unrelated whitespace changes? It's hard to read the diff and beyond that it will make |
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
b58934f
to
9472bc4
Compare
Fixed! A much easier diff to review. |
Closing in support of #65 due to tests and more complete code. |
@masteinhauser thanks for your contribution! we'll fold your PR into #65 |
The bulk API supports a specified
_routing
value for documentplacement 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