@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | 'query' => [ |
77 | 77 | 'bool' => [ |
78 | 78 | 'should' => [ |
79 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
80 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
81 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
79 | + ['match' => ['question' => $searchTerm]], |
|
80 | + ['match' => ['answer' => $searchTerm]], |
|
81 | + ['match' => ['keywords' => $searchTerm]] |
|
82 | 82 | ] |
83 | 83 | ] |
84 | 84 | |
@@ -94,14 +94,14 @@ discard block |
||
94 | 94 | 'query' => [ |
95 | 95 | 'filtered' => [ |
96 | 96 | 'filter' => [ |
97 | - 'term' => [ 'lang' => $this->getLanguage() ] |
|
97 | + 'term' => ['lang' => $this->getLanguage()] |
|
98 | 98 | ], |
99 | 99 | 'query' => [ |
100 | 100 | 'bool' => [ |
101 | 101 | 'should' => [ |
102 | - [ 'match' => [ 'question' => $searchTerm ] ], |
|
103 | - [ 'match' => [ 'answer' => $searchTerm ] ], |
|
104 | - [ 'match' => [ 'keywords' => $searchTerm ] ] |
|
102 | + ['match' => ['question' => $searchTerm]], |
|
103 | + ['match' => ['answer' => $searchTerm]], |
|
104 | + ['match' => ['keywords' => $searchTerm]] |
|
105 | 105 | ] |
106 | 106 | ] |
107 | 107 | ] |