lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Krupansky <>
Subject Re: Keyword match distance rule issue
Date Wed, 30 Sep 2015 14:06:47 GMT
This feature is known as fuzzy query, not keyword match.

Unfortunately, the edit distance limit is limited to 2. 3 or more are not
supported. Lucene itself still has the old "slow" fuzzy query that supports
larger edit distances, but Solr has no syntax for selecting it.

Actually, this limit of 2 is strict and enforced in Solr 4.x and 5.x and an
exception will be thrown. So, are you really not seeing an exception when
you use an edit distance greater than 2?

Also, please confirm that your query string does not contain actual quotes.
If it did, the fuzzy syntax would simply be analyzed as if it were simple

-- Jack Krupansky

On Wed, Sep 30, 2015 at 9:32 AM, anil.vadhavane <>

> Hi Benedetti,
> Yes, at first it looks like a user error and I am surprised as well with
> the
> case.
> We tested this on two different system. We tried it with lower case input
> but it is not matching. We are using the standard title column to store the
> data. Even we tried with 3, 4 and 5 edit distance but, this particular
> query
> is not matching.
> I wonder if anyone really try this on their own system to confirm if that
> is
> the case with others as well or not.
> Just to clarify -
> We want to match "emma bridwater radios", stored in title column, with the
> search query "Bridgewater~2" (you can use 3 edit distance if you want). We
> observed that, Solr not matching it. However, if we try "Bridffwater~2",
> Solr matching it.
> It might be a silly mistack from our side but, we are not able to find the
> solution at present.
> Thanks
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message