lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject CheckIndex: pos -1 is out of bounds
Date Sun, 30 Mar 2008 06:28:23 GMT

Hey guys, a Solr user just encountered an interesting situation...

...due to a naive "LengthFilter", an Analyzer is produce a TokenStream 
where the first Token has a positionIncrement of "0" which seems to 
produce this error from CheckIndex...

     WARNING: would remove reference to this segment (-fix was not 
specified); full exception:
java.lang.RuntimeException: term features:usa: doc 0: pos -1 is out of 
         at org.apache.lucene.index.CheckIndex.check(
         at org.apache.lucene.index.CheckIndex.main(

...but as far as i can tell, the index is still usable.

Questions are:
   1) is CheckIndex over paranoid?
   2) shouldn't IndexWriter have protected against this if it is incorrect?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message