lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravikumar Govindarajan <ravikumar.govindara...@gmail.com>
Subject SloppyPhraseScorer behavior
Date Fri, 19 Apr 2013 17:09:50 GMT
When writing a custom codec, I encountered an issue in SloppyPhraseScorer.
I am using lucene-4.2 GA.

public int nextDoc()
{
  return advance(max.doc)
}

This in-turn calls my DocsAndPositionEnum.advance(int target).

Intially this seems to call with advance(-1). It's kind of unsettling to
see an instruction from lucene API to advance past a negative docId. Also,
sometimes I receive the advance call to the same doc, twice.

Should it be advance(max.doc+1) or something? Has someone faced this issue
before?

--Ravi

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