You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -195,13 +195,13 @@ There is two ways.
195
195
By default, when you pass a query to the `search` method, the engine builds a [query_string](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html) query, so you can build queries like this
196
196
197
197
```php
198
-
Product::search('title:this OR description:this) AND (title:that OR description:that')`
198
+
Product::search('(title:this OR description:this) AND (title:that OR description:that)')
199
199
```
200
200
201
201
If it's not enough in your case you can pass a callback to the query builder
0 commit comments