Closed ghost closed 6 years ago
Use the QueryBuilder object as described here:
https://book.cakephp.org/3.0/en/elasticsearch.html#searching-indexed-documents
You can use, for example, the simpleQueryString
method:
https://github.com/cakephp/elastic-search/blob/master/src/QueryBuilder.php#L437
It worked as expected! Thank you so much!
How do I build a query like below by find() method?
If I write something like below in my controller,
I get queries like this
I would like to search indices by two keywords that match the contents of the title or the body.
I use elasticsearch6.2.2 and cakephp/elastic-search2.0 beta
Thanks in advance.