Hi, I'm using Solr 4.1RC at the moment and have been trying out the PostingsHighlighter feature. I have a schema that is based on the provided sample schema.xml so the fieldTypes that I am using is exactly the same.
This is the field that I have declared. <field name="title" type="text_en_splitting" indexed="true" stored="true" storeOffsetsWithPositions="true"/> If I set the value to: My name is Thomas O'Malley. I get the following error when adding through SolrJ. SEVERE: null:java.lang.IllegalArgumentException: offsets must not go backwards startOffset=18 is < lastStartOffset=20 at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:151) at org.apache.lucene.index.DocFieldProcessor.processDocument(DocFieldProcessor.java:306) at org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:250) at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:376) at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1484) at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:203) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:69) at org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:51) at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:455) at org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:591) at org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:350) If I set the field type to "text_en" however it works, I'm guessing something in the way the text is being analyzed is causing this exception to appear? Is there a limitation in how storeOffsetsWithPositions should be used? Thanks in advance! Meng Muk