-
Notifications
You must be signed in to change notification settings - Fork 113
Closed
Description
I'm using Elasticsearch as docker container with the binary-vector-scoring plugin installed, but I'm getting an intermittent error when doing search with the following query:
{
"function_score": {
"boost": 1,
"score_mode": "avg",
"boost_mode": "multiply",
"min_score": 0,
"script_score": {
"script": {
"source": "binary_vector_score",
"lang": "knn",
"params": {
"cosine": true,
"field": "image_embedding",
"vector": "MY_VECTOR_HERE"
}
}
}
}
}
The search runs ok for a while (first dozen of requests) and then it starts returning the following error:
Caused by: java.lang.IllegalStateException: binaryEmbeddingReader can't be null
elasticsearch | at com.liorkn.elasticsearch.script.VectorScoreScript.setBinaryEmbeddingReader(VectorScoreScript.java:67) ~[?:?]
elasticsearch | at com.liorkn.elasticsearch.service.VectorScoringScriptEngineService$1.getLeafSearchScript(VectorScoringScriptEngineService.java:65) ~[?:?]
elasticsearch | at org.elasticsearch.common.lucene.search.function.ScriptScoreFunction.getLeafScoreFunction(ScriptScoreFunction.java:79) ~[elasticsearch-5.6.0.jar:5.6.0]
elasticsearch | at org.elasticsearch.common.lucene.search.function.FunctionScoreQuery$CustomBoostFactorWeight.functionScorer(FunctionScoreQuery.java:140) ~[elasticsearch-5.6.0.jar:5.6.0]
...
Reindexing all documents is the only way to make the search work again, has anybody faced the same problem?
Metadata
Metadata
Assignees
Labels
No labels