lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19189] - SegmentTermPositions bug in method seek(TermInfo)
Date Thu, 24 Apr 2003 04:48:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19189>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19189

SegmentTermPositions bug in method seek(TermInfo)

cpp@vip.163.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From cpp@vip.163.com  2003-04-24 04:48 -------
Ok let's do something more realistic:
Say I'm getting the first position per document for every term,
so I change the loop into

      int i;
      while (te.next()) {
        tp.seek(te.term());
        while (tp.next()) {
          if (tp.freq()>=1)
            i = tp.nextPosition();
        }
      }

does this make more sense?  I agree this bug doesn't affect normal use,
but it's a bug.  And it's easy to fix:  just remove the 'else' in seek()

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message