Thanks Alan, great suggestion.

I filed the following issue to track this:
   https://issues.apache.org/jira/browse/LUCENE-10115

-Chris.

> On 20 Sep 2021, at 16:14, Alan Woodward <romseyg...@gmail.com> wrote:
> 
> Hi Chris,
> 
> The difference between the elasticsearch query parser and the built-in lucene 
> one appears to be based around how they parse fuzziness, so I think the best 
> solution here is to add another protected method, something like this:
> 
> protected float parseFuzzyDistance(String input, float default) {
>       try {
>               return Float.parseFloat(fuzzySlop.image.substring(1));
>       } catch (@SuppressWarnings("unused”) Exception ignored) {
>               return default;
>       }
> }
> 
> Then handleBareFuzzy() can call out to this, and the ES version can overload 
> it and do its own parsing.
> 
> - A

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to