Search_Analyzer for query_string by Field


(jrevant122) #1

hello,

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

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


(Shay Banon) #2

Yes, you define the search_analyzer in the custom mapping you set on a
field.

On Tue, May 8, 2012 at 12:30 AM, Revant Jain jrevant122@gmail.com wrote:

hello,

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

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


(system) #3