Auto search fuzzy when use string_query


(giangvo2011) #1

Hi all,

Is there any way to make elastic auto search fuzzy when use string_query.ie:
I want to search with: query = Auto search query
Currently elastic will analyse my query to : auto, search,query and search exactly with these term.
Expected: elastic will analyse my query and search fuzzy with each term: auto~,search~ and query~

Hope you can help me to find out a solution.

Thanks and Regards,
Giang Vo


(Shay Banon) #2

No, there isn't a way to make all searches use fuzzy search with
query_string query.

On Fri, May 11, 2012 at 6:37 AM, Giang Vo giangvo2011@gmail.com wrote:

Hi all,

Is there any way to make elastic auto search fuzzy when use
string_query.ie:
I want to search with: query = Auto search query
Currently elastic will analyse my query to : auto, search,query and
search exactly with these term.
Expected: elastic will analyse my query and search fuzzy with each
term: auto~,search~ and query~

Hope you can help me to find out a solution.

Thanks and Regards,
Giang Vo


(giangvo2011) #3

Thanks for ur reply.
Is there any way for me to do this?
I can do it manually by splitting query into term by space and add the ~ symbol. but when I do it, my query is not be analyzed by elastic anymore.


(system) #4