-
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
The formula for calculating the shard which a document is routed in reference is wrong. #76072
Comments
Pinging @elastic/es-docs (Team:Docs) |
Pinging @elastic/es-search (Team:Search) |
Thanks for raising this @ViggoC. I'm not sure we need the formulae here at all. It's probably enough to say that we use a hash of the document |
@jrodewig Thank you for your response, I agree with your opinion that it's enough for some users. But I believe that a link to more detail about how the shard num is calculated will be helpful for senior user and developer. Maybe the information can be appended to where index.number_of_routing_shards is mentioned. |
👍 |
The `_routing` metadata field docs currently include formulas for how Elasticsearch routes documents to shards. However, these formulas were not updated for elastic#18699. This updates the routing formulas and adds xrefs for related settings. Closes elastic#76072
The `_routing` metadata field docs currently include formulas for how Elasticsearch routes documents to shards. However, these formulas were not updated for elastic#18699. This updates the routing formulas and adds xrefs for related settings. Closes elastic#76072
The `_routing` metadata field docs currently include formulas for how Elasticsearch routes documents to shards. However, these formulas were not updated for #18699. This updates the routing formulas and adds xrefs for related settings. Closes #76072 Co-authored-by: James Rodewig <[email protected]>
The `_routing` metadata field docs currently include formulas for how Elasticsearch routes documents to shards. However, these formulas were not updated for #18699. This updates the routing formulas and adds xrefs for related settings. Closes #76072 Co-authored-by: James Rodewig <[email protected]>
The formula for calculating the shard which a document is routed in reference is wrong. It does not match the actual calculation process in the code.
Formula in reference
Code
The text was updated successfully, but these errors were encountered: