-
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
indices_boost ignore aliasing #4756
Comments
+1 .. |
I have the same problem |
+1 |
+1, has this been addressed yet? i must be able to use the alias. |
+1 |
Has this been addressed? Please don't tell me this has not been fixed. Just bumped into it in production. |
+1 as we have just hit this surprising behavior in production as well. |
Things to consider:
|
It seems the option to add indices_boost with the java client is not available. Is this true? I am using spring-data-elasticsearch and I cant seem to find a way to add indices_boots to my query. Thank you. |
+1 |
I would like support for wildcard expansion as well. 👍 |
+1 |
Any updates on these? @clintongormley ? |
Calling all devs. @clintongormley @kimchy Is this for real? |
+1 |
This change stalled because of the problem of figuring out what to do when an index is boosted more than once via an alias or wildcard. From #8811 (comment) : @masaruh just reread this thread and i think the correct answer is here:
Then the logic would be that we use the boost from the first time we see the index in the list, so eg:
This could be implemented in a bwc way. In fact, the old syntax doesn't need to be removed. We could just add this new syntax as an expert way of controlling boosts. What do you think? |
Ooh, true. that should work! Thanks @clintongormley. |
This change allows specifying alias/wildcard expression in indices_boost. And added another format for specifying indices_boost. It accepts array of index name and boost pair. If an index is included in multiple aliases/wildcard expressions, the first match will be used. With new format, old format is marked as deprecated. Closes elastic#4756
This change allows specifying alias/wildcard expression in indices_boost. And added another format for specifying indices_boost. It accepts array of index name and boost pair. If an index is included in multiple aliases/wildcard expressions, the first match will be used. With new format, old format is marked as deprecated. Closes #4756
It looks that the top level boosting based on the indices (indices_boost) requires that we specify the exact index name. We cannot substitue an alias pointing to a given index. This is very inconvenient since it defeats the purpose of having aliases to hide internal organization of the indices.
The text was updated successfully, but these errors were encountered: