java.lang.IllegalArgumentException: first position increment must be > 0 (got 0) for field 'text'
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Solutions on the web
via GitHub by ywjno
, 11 months agovia GitHub by boliza
, 2 months agovia Stack Overflow by agodin
, 2 years agovia Stack Overflow by rolando
, 1 year agovia nabble.com by Unknown author, 2 years ago
via apache.org by Unknown author, 2 years ago
java.lang.IllegalArgumentException: first position increment must be > 0 (got 0) for field 'text'
at org.apache.lucene.index.DefaultIndexingChain$PerField.invert(DefaultIndexingChain.java:727)
at org.apache.lucene.index.DefaultIndexingChain.processField(DefaultIndexingChain.java:417)
at org.apache.lucene.index.DefaultIndexingChain.processDocument(DefaultIndexingChain.java:373)
at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:232)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:449)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1492)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1271)
at com.peikore.LuceneTest.lambda$writerIndex$0(LuceneTest.java:101)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at com.ywjno.LuceneTest.writerIndex(LuceneTest.java:74)
at com.ywjno.LuceneTest.main(LuceneTest.java:39)