Hello List,

When a similarity returns NEGATIVE_INFINITY, hits[i].doc becomes 2147483647.
Thus, exception is thrown in the following code:

for (int i = 0; i < hits.length; i++) {
int docId = hits[i].doc;
Document doc = searcher.doc(docId);
}

I know it is an awkward to return infinity (comes from log(0)), but exception 
looks like equally 
awkward and uniformative.

Do you think is this something improvable? Can we do better handling here?
 
Thanks,
Ahmet

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to