Skip to content
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

NullPointerException while querying #1

Open
ritesh-dineout opened this issue Feb 21, 2018 · 2 comments
Open

NullPointerException while querying #1

ritesh-dineout opened this issue Feb 21, 2018 · 2 comments

Comments

@ritesh-dineout
Copy link

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.

@sandeep0473
Copy link

sandeep0473 commented May 17, 2019

Getting the same issue. If any one find the solution plz answer

@llllly26
Copy link

how to solve the problem with "NullPointerException"?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants