弹性搜索查询字符串分析器,用于不同分析仪的不同领域 [英] elasticsearch query string analyzer for different fields with different analyzers
问题描述
在对具有不同分析器(stem,ngram等)的多个字段执行查询时,elasticsearch对每个字段的查询字符串执行特定的分析?
When performing a query on multiple fields which have different analyzers (stem, ngram, etc..), does elasticsearch perform specific analyzing on the query string for each field?
推荐答案
是的,除非您在查询中指定了分析器。 query_string 查询将转换为bool或dismax查询,具体取决于您的查询中的 use_dis_max
参数。将为每个字段生成不同的查询,并且将使用与每个特定字段相关的 search_analyzer
来分析查询。
Yes it does, unless you specify an analyzer within your query. The query_string query gets translated to a bool or a dismax query depending on the use_dis_max
parameter within your query. A different query will be generated for each field, and the search_analyzer
related to each specific field will be used to analyze the query.
这篇关于弹性搜索查询字符串分析器,用于不同分析仪的不同领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!