@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | 'bool' => [ |
| 92 | 92 | 'must' => [ |
| 93 | 93 | [ |
| 94 | - 'terms' => [ 'category_id' => $this->getCategoryIds() ] |
|
| 94 | + 'terms' => ['category_id' => $this->getCategoryIds()] |
|
| 95 | 95 | ], |
| 96 | 96 | $languageFilter |
| 97 | 97 | ] |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | 'query' => [ |
| 101 | 101 | 'bool' => [ |
| 102 | 102 | 'should' => [ |
| 103 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
| 104 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
| 105 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
| 103 | + ['match' => ['question' => $searchTerm]], |
|
| 104 | + ['match' => ['answer' => $searchTerm]], |
|
| 105 | + ['match' => ['keywords' => $searchTerm]] |
|
| 106 | 106 | ] |
| 107 | 107 | ] |
| 108 | 108 | ] |
@@ -161,9 +161,9 @@ discard block |
||
| 161 | 161 | 'query' => [ |
| 162 | 162 | 'bool' => [ |
| 163 | 163 | 'should' => [ |
| 164 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
| 165 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
| 166 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
| 164 | + ['match' => ['question' => $searchTerm]], |
|
| 165 | + ['match' => ['answer' => $searchTerm]], |
|
| 166 | + ['match' => ['keywords' => $searchTerm]] |
|
| 167 | 167 | ] |
| 168 | 168 | ] |
| 169 | 169 | ] |