Re: Lucene DirectSpellChecker strange behavior

2016-06-07 Thread Caroline Collet
Thank you for your prompt reply this makes perfect sense. Le 07/06/2016 17:24, Robert Muir a écrit : Its just a heuristic: that it does not allow 2 edits (insertion/deletion/substitution/transposition) to the word if the first character differs (https://github.com/apache/lucene-solr/blob/maste

Re: Lucene DirectSpellChecker strange behavior

2016-06-07 Thread Robert Muir
Its just a heuristic: that it does not allow 2 edits (insertion/deletion/substitution/transposition) to the word if the first character differs ( https://github.com/apache/lucene-solr/blob/master/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java#L411). So when it goes b

Lucene DirectSpellChecker strange behavior

2016-06-07 Thread Caroline Collet
Hello, I have a very strange behavior when I use the DirectSpellChecker of Lucene. I have set the prefixLength to 0. I have indexed only one item with one field : brand=samsung. I have tried to make requests with spelling mistakes inside. When I search for "smsng" I obtain "samsung" which is l

Lucene DirectSpellChecker strange behavior

2016-06-07 Thread Caroline Collet
Hello, I have a very strange behavior when I use the DirectSpellChecker of Lucene. I have set the prefixLength to 0. I have indexed only one item with one field : brand=samsung. I have tried to make requests with spelling mistakes inside. When I search for "smsng" I obtain "samsung" which is