lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonghui Zhao <zhaoyong...@gmail.com>
Subject A flush exception in lucene 4.10.0
Date Fri, 03 Mar 2017 02:19:47 GMT
Hi all,

 Anyone see this exception before? Is it a lucene bug or something wrong in
my code?


Exception in thread "Thread-14" java.lang.IllegalArgumentException:
maxValue must be non-negative (got: -1)
        at
org.apache.lucene.util.packed.PackedInts.bitsRequired(PackedInts.java:1141)
        at
org.apache.lucene.codecs.lucene41.ForUtil.bitsRequired(ForUtil.java:253)
        at
org.apache.lucene.codecs.lucene41.ForUtil.writeBlock(ForUtil.java:174)
        at
org.apache.lucene.codecs.lucene41.Lucene41PostingsWriter.addPosition(Lucene41PostingsWriter.java:377)
        at
org.apache.lucene.index.FreqProxTermsWriterPerField.flush(FreqProxTermsWriterPerField.java:486)
        at
org.apache.lucene.index.FreqProxTermsWriter.flush(FreqProxTermsWriter.java:80)
        at
org.apache.lucene.index.DefaultIndexingChain.flush(DefaultIndexingChain.java:114)
        at
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:441)
        at
org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:510)
        at
org.apache.lucene.index.DocumentsWriter.flushAllThreads(DocumentsWriter.java:621)
        at
org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:414)
        at
org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:292)
        at
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:267)
        at
org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:257)
        at
org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:171)

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