I am using elastic search using snowball analyzer to search at one field (called caption). When I searched for 'dress korea', it also returns results with dress only and korea only. Is it possible to limit the search so it has to contain both search term/query? If so how do I do so? Thanks

有帮助吗?

解决方案

It depends on the query you are using.

For example, with Simple Query String query, you can add a AND flag.

其他提示

As far as I can see from http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html you would need to include an operator of 'AND'.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top