Multi-field, multi-word, match without query_string

后端 未结 4 1581
清酒与你
清酒与你 2020-12-23 21:58

I would like to be able to match a multi word search against multiple fields where every word searched is contained in any of the fields, any combination. T

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 22:48

    I think "match" query is what you are looking for:

    "The match family of queries does not go through a “query parsing” process. It does not support field name prefixes, wildcard characters, or other “advance” features. For this reason, chances of it failing are very small / non existent, and it provides an excellent behavior when it comes to just analyze and run that text as a query behavior (which is usually what a text search box does)"

    http://www.elasticsearch.org/guide/reference/query-dsl/match-query.html

提交回复
热议问题