Any Word match and Exact match for the same field


(Deepak Chezhian) #1

Hi,

I want to do an analysed search(like if any of the words in the field
matches) using match query with fuzziness and use facets of the search
result to filter the documents(i want to do an exact match in this case).

Is there anyway do the analysed(for any term match) and not analysed(for
exact match) search on the same field?

Regards,
Deepak

--


(David Pilato) #2

I think that you can use multifield feature for that.
See http://www.elasticsearch.org/guide/reference/mapping/multi-field-type.html
http://www.elasticsearch.org/guide/reference/mapping/multi-field-type.html

HTH

Le 26 septembre 2012 à 14:51, Deepak Chezhian cdeepakcse@gmail.com a écrit :

Hi,

I want to do an analysed search(like if any of the words in the field
matches) using match query with fuzziness and use facets of the search result
to filter the documents(i want to do an exact match in this case).

Is there anyway do the analysed(for any term match) and not analysed(for
exact match) search on the same field?

Regards,
Deepak

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--


(system) #3