-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Inconsistency in multi_match query #16098
Comments
I agree. Related to #12016 |
I bumped into this too. Is there a workaround that I can apply until this issue has been solved? |
Is this fixed now? |
@clintongormley Confirmed this is not reproducible on latest master with the following:
However the same query fails on 2.3.2. Which release will the changes from #12016 land in? |
This is fixed in master thanks to a massive refactoring of how searches are parsed - this obviously can't be backported. If somebody wants to contribute a quick fix for 2.4, then please submit a PR. |
One workaround this that I've found is to add a dummy field to the |
It seems it's fixed in Elasticsearch 5.0.0 elastic/elasticsearch#16098
This issue seems to be fixed in 5.0.0. As far as I am concerned it can be closed. |
Fixed in 5.0, closing |
There is a discrepancy in the behaviour of
multi_match
query when it comes to resolving field names containing wildcard characters.The following query will return zero results if the field
subject
does not exists.But the following query will fail with an exception saying
"No fields specified for multi_match query"
if there is no field whose name starts with "ms" in the index being queried. Ideally it should return zero results too instead of failing right?I have a use case where fields are dynamically added to the mapping and users can provide the field name to match search text on. Fields added to the mapping also have a metadata string appended to their names which the user may not be aware about. Hence I need to use wildcards in the field name in a
multi_match
query and there are chances that no field name matches too.The text was updated successfully, but these errors were encountered: