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