lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dwaipayan Roy <dwaipayan....@gmail.com>
Subject getting Lucene Docid from inside score()
Date Fri, 09 Mar 2018 10:06:32 GMT
While searching, I want to get the lucene assigned docid (that starts from
0 to the number of documents -1) of a document having a particular query
term.

>From inside the score(), printing 'doc' or calling docId() is returning a
docid which, I think, is the internal docid of a segment in which the
document is indexed. However, I want to have the lucene assigned docid. How
to do that?

Dwaipayan..

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message