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 } }
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 } }
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.