lucidworks / auto-phrase-tokenfilter

Lucene Auto Phrase TokenFilter implementation
Other
59 stars 63 forks source link

Compatible with Solr 7.1.0? #29

Closed ryac closed 7 years ago

ryac commented 7 years ago

Hello,

I'd like to use this plugin for Solr 7.x (Solrcloud). I was able to build the plugin for Solr 7.1.0, passing all tests. Although when I install and index content I get an error regarding the field that uses the plugin:

Remote error message: Exception writing document id 36 to the index; possible analysis error: startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=0,endOffset=15,lastStartOffset=4 for field 'autophrase_field'

This error only occurs when the phrase being indexed is greater than 2 tokens.

Is this a known issue?

ryac commented 7 years ago

I was using the SynonymGraphFilterFactory in the chain and forgot to add solr.FlattenGraphFilterFactory after this. It's fine.