lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Rossini" <rafael.ross...@gmail.com>
Subject Delete corrupted doc
Date Wed, 25 Jul 2007 18:38:09 GMT
Hi guys,

    Is there a way of deleting a document that, because of some corruption,
got and docID larger than the maxDoc() ? I´m trying to do this but I get
this Exception:

 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array
index out of range: 106577
   at org.apache.lucene.util.BitVector.set(BitVector.java:53)
   at org.apache.lucene.index.SegmentReader.doDelete (SegmentReader.java
:301)
   at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java
:674)
   at org.apache.lucene.index.MultiReader.doDelete(MultiReader.java:125)
   at org.apache.lucene.index.IndexReader.deleteDocument (IndexReader.java
:674)
   at teste.DeleteError.main(DeleteError.java:9)

Thanks

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