-
Notifications
You must be signed in to change notification settings - Fork 46
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
java.lang.NullPointerException when field not filled (7.6.2) #181
Comments
You're catching a lot of things I hadn't thought of. Very helpful 👍 |
I was trying to reproduce this one in a test, and accidentally reproduced #180 😆 |
@ejackson-eb So I ended up adding a test in #184 that does the following:
I found that after increasing from 10k to 20k I started seeing the issue you mentioned over in #180. So I'd suggest trying out the fix that I linked here: #180 (comment) |
This seems to be resolved based on some email discussion. |
I attempted an Elasticknn query on a vector field that existed in my mapping but which had not been filled for any documents. This triggered a java.lang.NullPointerException.
Mapping:
Query:
{'_source': ['id'], 'size': 20, 'query': {'function_score': {'query': {'bool': {'must': [{'elastiknn_nearest_neighbors': {'field': 'esknn_embedding', 'vec': {'values': [...]}, 'model': 'lsh', 'similarity': 'angular', 'candidates': 50}}]}}, 'functions': [], 'score_mode': 'multiply', 'boost_mode': 'multiply'}}}
Elasticsearch output:
Caused by: java.lang.NullPointerException
I'm not really sure what should happen, but presumably not an exception of this sort.
The text was updated successfully, but these errors were encountered: