문제

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