Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elasticsearch: Replacement for Fuzzy Like This Query Deprecation

Reference to this link it said that the Fuzzy Like This (also Fuzzy Like This Query) will be deprecated in ES version > 1.6, and completely remove in version 2. I'm using Elasticsearch version 1.5.1 and using a lot of FLT statement in my search query. I would like to upgrade the ES version to the current latest (1.7), but I could not find any suggest about FLT replacement when move to newer version? So I would like to ask, if any. And is it possible to use it when it is deprecated?

like image 525
Trony Tr Avatar asked Aug 05 '15 04:08

Trony Tr


People also ask

Does Elasticsearch do fuzzy matching?

Fuzzy search in ElasticsearchA fuzzy search will find the matching values based on the initial query based on the specific criteria. Elasticsearch implements fuzziness using the Levenshtein edit distance algorithm.

What is fuzzy query in Elasticsearch?

Fuzzy queryedit. Returns documents that contain terms similar to the search term, as measured by a Levenshtein edit distance. An edit distance is the number of one-character changes needed to turn one term into another.

What is Elasticsearch query?

Elasticsearch provides a full Query DSL (Domain Specific Language) based on JSON to define queries. Think of the Query DSL as an AST (Abstract Syntax Tree) of queries, consisting of two types of clauses: Leaf query clauses.


1 Answers

I found the following recommendation in the Elasticseach reference :

The fuzzy_like_this or flt query has been removed. Instead use the fuzziness parameter with the match query or the More Like This Query.

Deprecated means that you can still use this feature without issues as long as you don't upgrade to version 2 or higher. I'm using version 1.7.1 and flt works fine. But the feature will no longer exist in version 2.x. For more details why they decided to remove it you can have a look at the relevant github thread.

like image 53
Chief Wiggum Avatar answered Sep 19 '22 12:09

Chief Wiggum