Did fuzziness change with Elasticsearch 2?

(David Kemp) #1

Was there supposed to be a change in the behaviour of fuzzy matching between Elasticsearch 1.7 and 2.1?

A match query with fuzziness of "1" in Elasticsearch 2 will match transposed adjacent characters, but didn't in Elasticsearch 1.

POST /foo/foo/1
{"text": "ab"}

GET /foo/foo/_search
{ "query": {"match": {"text": {"query": "ba", "fuzziness": 1}}}}

In Elasticsearch 1.7, the query did not match "ab", but it does match in 2.1

(Michael McCandless) #2

Yes, the default for fuzzy_transpositions changed from false to true in https://github.com/elastic/elasticsearch/issues/9278

(system) #3