You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'd like to report an issue using FixedShingleFilter with WordDelimiterGraphFilter. An exception is raised on the following conditions.
Tokenizer produces 1 token
WordDelimiterGraphFilter produces multiple tokens
FixedShingleFliter used
I ran into the issue when using Elasticsearch's search_as_you_type which uses FixedShingleFilter.
Exception in thread "main" java.lang.IllegalArgumentException: first position increment must be > 0 (got 0) for field 'contents'
at org.apache.lucene.index.IndexingChain$PerField.invertTokenStream(IndexingChain.java:1232)
at org.apache.lucene.index.IndexingChain$PerField.invert(IndexingChain.java:1196)
at org.apache.lucene.index.IndexingChain.processField(IndexingChain.java:741)
at org.apache.lucene.index.IndexingChain.processDocument(IndexingChain.java:618)
at org.apache.lucene.index.DocumentsWriterPerThread.updateDocuments(DocumentsWriterPerThread.java:274)
at org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:425)
at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1552)
at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1837)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1477)
at org.apache.lucene.demo.IndexFiles.indexDoc(IndexFiles.java:283)
at org.apache.lucene.demo.IndexFiles.indexDocs(IndexFiles.java:234)
at org.apache.lucene.demo.IndexFiles.main(IndexFiles.java:167)
This is the change to IndexFiles.java that can trigger the exception, tested on c20e09e.
Description
Hi, I'd like to report an issue using
FixedShingleFilter
withWordDelimiterGraphFilter
. An exception is raised on the following conditions.I ran into the issue when using Elasticsearch's search_as_you_type which uses FixedShingleFilter.
This is the change to IndexFiles.java that can trigger the exception, tested on c20e09e.
Testing data:
I have a file with the following content and then the file is fed to IndexFiles.
Version and environment details
tested on c20e09e
The text was updated successfully, but these errors were encountered: