Multiple Analyzers for query_string by Field

hello,

for particular query, how can i define separate query analyzers by
field (phonetic_name, name). Just define search_analyzers for phonetic_name & name in Put Mapping of Index/Type?

{
"query_string" : {
"fields" : ["phonetic_name", "name^5"],
"query" : "italian food",
"use_dis_max" : true
}
}

Yes, that would work. In the mapping for each field you can specify
different search_analyzer.

On Wed, May 9, 2012 at 12:54 AM, jrevant122 jrevant122@gmail.com wrote:

hello,

for particular query, how can i define separate query analyzers by
field (content, name). Just define search_analyzers for Content & Name in
Put Mapping of Index/Type?

{
"query_string" : {
"fields" : ["content", "name^5"],
"query" : "italian food",
"use_dis_max" : true
}
}

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Search-Analyzer-for-query-string-by-Field-tp3972607.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.