solr-vector-scoring
solr-vector-scoring copied to clipboard
NullPointerException while querying
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.
Getting the same issue. If any one find the solution plz answer
how to solve the problem with "NullPointerException"?