-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
Unable to find a field mapper for field in nested query using field_value_factor #12871
Comments
I suspect this is because you gave |
There's a related question on stackoverflow since a long time ago that gets upvotes, but nobody can answer: http://stackoverflow.com/questions/27274240/function-score-query-with-field-value-factor-on-not-yet-existing-field Also the issue very similar to this: #10948 Are you sure this is not an issue with elastic? P.S. "tags.weight" instead of "tags" makes no difference. |
@vrepsys your mapping is incorrect. You used
At least in 2.0 (not sure about before), your mapping fails with an exception |
Thank you! |
Here's the mapping:
Then doing a nested query using a field_value_factor fails with an error
The error: "nested: ElasticsearchException[Unable to find a field mapper for field [weight]]"
Interestingly, if there's one book in the index with tags - there's no error and the query works well.
Why is this happening? how can I prevent the error when there are no books with tags in the index?
Any ideas?
Thank you!
The text was updated successfully, but these errors were encountered: