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
In order to configure the query_string query, for example to set the default_operator to AND
you can now pass additional options to the fulltext eel operation
Copy file name to clipboardExpand all lines: Classes/Eel/ElasticSearchQueryBuilder.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -617,13 +617,14 @@ public function count()
617
617
* Match the searchword against the fulltext index
618
618
*
619
619
* @param string $searchWord
620
+
* @param array|null $options Options to configure the query_string, see https://www.elastic.co/guide/en/elasticsearch/reference/5.6/query-dsl-query-string-query.html
* `greaterThan('propertyName', value)` -- range filter with property values greater than the given value
134
134
* `greaterThanOrEqual('propertyName', value)` -- range filter with property values greater than or equal to the given value
135
135
* `lessThan('propertyName', value)` -- range filter with property values less than the given value
@@ -138,7 +138,7 @@ Furthermore, the following operators are supported:
138
138
will first sort by tag ascending, and then by date descending.
139
139
* `limit(5)` -- only return five results. If not specified, the default limit by Elasticsearch applies (which is at 10 by default)
140
140
* `from(5)` -- return the results starting from the 6th one
141
-
* `fulltext(...)` -- do a query_string query on the Fulltext Index
141
+
* `fulltext('searchWord', options)` -- do a query_string query on the Fulltext index using the searchword and additional [options](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/query-dsl-query-string-query.html) to the query_string
142
142
143
143
Furthermore, there is a more low-level operator which can be used to add arbitrary Elasticsearch filters:
0 commit comments