Search for names analyzed/not_analyzed


(Lior) #1

I'm having a little problem with my search option.
I built an index with "name" field, which also has a raw field.
the name is analyzed and the name.raw is not_analyzed

A few names for example:
Alexander Petrov,
Alexander Gruenewald,
Brett Alexander,
Alexander Loewe

I'm trying to create a search in my system, which will query all the fields (name, age, residence...)
and i want that typing alexander p will bring Alexander Petrov alone...
I tried query_string, wildcard and many other stuff without success...

What is the best solution here?


(Mark Walkom) #2

Probably https://www.elastic.co/guide/en/elasticsearch/reference/2.2/search-suggesters-completion.html


(system) #3