You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The term vector is null and when checking the size it throws NullPointerException. I tried to debug this issue but unable to find what is the cause of terms vectors being null.
It may be possible that for all the documents in solr vectors are not available and for those documents the vector field will not even be indexed and hence no term vector.
There should be a null check and if term vectors are null score should be 0.
The text was updated successfully, but these errors were encountered:
I am facing
NullPointerException
at https://github.com/saaay71/solr-vector-scoring/blob/master/src/com/github/saaay71/solr/VectorScoreQuery.java#L48 line number.The term vector is null and when checking the size it throws NullPointerException. I tried to debug this issue but unable to find what is the cause of terms vectors being null.
It may be possible that for all the documents in solr vectors are not available and for those documents the vector field will not even be indexed and hence no term vector.
There should be a null check and if term vectors are null score should be 0.
The text was updated successfully, but these errors were encountered: