Question

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

Was it helpful?

Solution

It depends on the query you are using.

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

OTHER TIPS

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'.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top