Skip to content

Commit cf9d053

Browse files
committed
TASK: Options need to be given as arrays
1 parent c946108 commit cf9d053

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Classes/Driver/QueryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function from($size);
7272
* Match the search word against the fulltext index
7373
*
7474
* @param string $searchWord
75-
* @param array|null $options Options to configure the query_string
75+
* @param array $options Options to configure the query_string
7676
* @return void
7777
* @api
7878
*/

Classes/Driver/Version1/Query/FilteredQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function from($size)
5353
/**
5454
* {@inheritdoc}
5555
*/
56-
public function fulltext(string $searchWord, ?array $options = [])
56+
public function fulltext(string $searchWord, array $options = [])
5757
{
5858
$this->appendAtPath('query.filtered.query.bool.must', [
5959
'query_string' => array_merge($options, ['query' => $searchWord])

Classes/Driver/Version5/Query/FilteredQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FilteredQuery extends Version1\Query\FilteredQuery
2323
/**
2424
* {@inheritdoc}
2525
*/
26-
public function fulltext(string $searchWord, ?array $options = [])
26+
public function fulltext(string $searchWord, array $options = [])
2727
{
2828
$this->appendAtPath('query.bool.must', [
2929
'query_string' => array_merge($options, ['query' => $searchWord])

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,11 @@ public function count()
617617
* Match the searchword against the fulltext index
618618
*
619619
* @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
620+
* @param array $options Options to configure the query_string, see https://www.elastic.co/guide/en/elasticsearch/reference/5.6/query-dsl-query-string-query.html
621621
* @return QueryBuilderInterface
622622
* @api
623623
*/
624-
public function fulltext($searchWord, ?array $options = [])
624+
public function fulltext($searchWord, array $options = [])
625625
{
626626
// We automatically enable result highlighting when doing fulltext searches. It is up to the user to use this information or not use it.
627627
$this->request->fulltext(trim(json_encode($searchWord), '"'), $options);

0 commit comments

Comments
 (0)