0

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

rene
  • 41,474
  • 78
  • 114
  • 152
adit
  • 32,574
  • 72
  • 229
  • 373

2 Answers2

1

It depends on the query you are using.

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

dadoonet
  • 14,109
  • 3
  • 42
  • 49
0

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

Mladen Mihajlovic
  • 6,095
  • 7
  • 40
  • 55