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
, 1 year ago
first position increment must be > 0 (got 0) for field 'text'
via GitHub by boliza
, 5 months ago
startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=1,en dOffset=5,lastStartOffset=4 for field 'content'
via GitHub by xchechi123x
, 1 month ago
startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=1,endOffset=3,lastStartOffset=9 for field 'recommendations'
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)