Skip to content

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

Closed

Conversation

masteinhauser
Copy link

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

@@ -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

Copy link
Contributor

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.

Copy link
Author

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.

@masteinhauser
Copy link
Author

Also, this was first requested back in JIRA and is finally implemented. Though, not specifically for space optimization as originally mentioned.

@jordansissel
Copy link
Contributor

Can you fix the unrelated whitespace changes? It's hard to read the diff and beyond that it will make git blame point at you for things you shouldn't be blamed for :)

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
@masteinhauser
Copy link
Author

Fixed! A much easier diff to review.

@masteinhauser
Copy link
Author

Closing in support of #65 due to tests and more complete code.

@suyograo
Copy link
Contributor

suyograo commented Mar 2, 2015

@masteinhauser thanks for your contribution! we'll fold your PR into #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants