Skip to content
This repository was archived by the owner on Nov 4, 2021. It is now read-only.

Commit 04817ac

Browse files
committed
Fixed unit tests.
1 parent 5a3c840 commit 04817ac

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

tests/ElasticEngineTest.php

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ public function test_if_the_search_method_builds_correct_payload()
139139
'query' => [
140140
'bool' => [
141141
'must' => [
142-
'match' => [
143-
'_all' => 'test query'
142+
'query_string' => [
143+
'query' => 'test query'
144144
]
145145
]
146146
]
@@ -169,8 +169,8 @@ public function test_if_the_search_method_with_specified_limit_builds_correct_pa
169169
'query' => [
170170
'bool' => [
171171
'must' => [
172-
'match' => [
173-
'_all' => 'test query'
172+
'query_string' => [
173+
'query' => 'test query'
174174
]
175175
]
176176
]
@@ -200,8 +200,8 @@ public function test_if_the_search_method_with_specified_order_builds_correct_pa
200200
'query' => [
201201
'bool' => [
202202
'must' => [
203-
'match' => [
204-
'_all' => 'test query'
203+
'query_string' => [
204+
'query' => 'test query'
205205
]
206206
]
207207
]
@@ -233,8 +233,8 @@ public function test_if_the_search_method_with_specified_where_clause_builds_cor
233233
'query' => [
234234
'bool' => [
235235
'must' => [
236-
'match' => [
237-
'_all' => 'phone'
236+
'query_string' => [
237+
'query' => 'phone'
238238
]
239239
],
240240
'filter' => [
@@ -321,8 +321,8 @@ public function test_if_the_search_method_with_specified_whereIn_clause_builds_c
321321
'query' => [
322322
'bool' => [
323323
'must' => [
324-
'match' => [
325-
'_all' => 'test query'
324+
'query_string' => [
325+
'query' => 'test query'
326326
]
327327
],
328328
'filter' => [
@@ -362,8 +362,8 @@ public function test_if_the_search_method_with_specified_whereNotIn_clause_build
362362
'query' => [
363363
'bool' => [
364364
'must' => [
365-
'match' => [
366-
'_all' => 'test query'
365+
'query_string' => [
366+
'query' => 'test query'
367367
]
368368
],
369369
'filter' => [
@@ -403,8 +403,8 @@ public function test_if_the_search_method_with_specified_whereBetween_clause_bui
403403
'query' => [
404404
'bool' => [
405405
'must' => [
406-
'match' => [
407-
'_all' => 'test query'
406+
'query_string' => [
407+
'query' => 'test query'
408408
]
409409
],
410410
'filter' => [
@@ -447,8 +447,8 @@ public function test_if_the_search_method_with_specified_whereNotBetween_clause_
447447
'query' => [
448448
'bool' => [
449449
'must' => [
450-
'match' => [
451-
'_all' => 'test query'
450+
'query_string' => [
451+
'query' => 'test query'
452452
]
453453
],
454454
'filter' => [
@@ -491,8 +491,8 @@ public function test_if_the_search_method_with_specified_whereExists_clause_buil
491491
'query' => [
492492
'bool' => [
493493
'must' => [
494-
'match' => [
495-
'_all' => 'test query'
494+
'query_string' => [
495+
'query' => 'test query'
496496
]
497497
],
498498
'filter' => [
@@ -532,8 +532,8 @@ public function test_if_the_search_method_with_specified_whereNotExists_clause_b
532532
'query' => [
533533
'bool' => [
534534
'must' => [
535-
'match' => [
536-
'_all' => 'test query'
535+
'query_string' => [
536+
'query' => 'test query'
537537
]
538538
],
539539
'filter' => [
@@ -573,8 +573,8 @@ public function test_if_the_search_method_with_specified_whereRegexp_clause_buil
573573
'query' => [
574574
'bool' => [
575575
'must' => [
576-
'match' => [
577-
'_all' => 'phone'
576+
'query_string' => [
577+
'query' => 'phone'
578578
]
579579
],
580580
'filter' => [
@@ -617,8 +617,8 @@ public function test_if_the_search_method_with_specified_whereGeoDistance_clause
617617
'query' => [
618618
'bool' => [
619619
'must' => [
620-
'match' => [
621-
'_all' => 'flat'
620+
'query_string' => [
621+
'query' => 'flat'
622622
]
623623
],
624624
'filter' => [
@@ -663,8 +663,8 @@ public function test_if_the_search_method_with_specified_whereGeoBoundingBox_cla
663663
'query' => [
664664
'bool' => [
665665
'must' => [
666-
'match' => [
667-
'_all' => 'flat'
666+
'query_string' => [
667+
'query' => 'flat'
668668
]
669669
],
670670
'filter' => [
@@ -713,8 +713,8 @@ public function test_if_the_search_method_with_specified_whereGeoPolygon_clause_
713713
'query' => [
714714
'bool' => [
715715
'must' => [
716-
'match' => [
717-
'_all' => 'flat'
716+
'query_string' => [
717+
'query' => 'flat'
718718
]
719719
],
720720
'filter' => [
@@ -871,8 +871,8 @@ public function test_if_the_paginate_method_builds_correct_payload()
871871
'query' => [
872872
'bool' => [
873873
'must' => [
874-
'match' => [
875-
'_all' => 'test query'
874+
'query_string' => [
875+
'query' => 'test query'
876876
]
877877
]
878878
]
@@ -983,8 +983,8 @@ public function test_if_the_explain_method_builds_correct_payload()
983983
'query' => [
984984
'bool' => [
985985
'must' => [
986-
'match' => [
987-
'_all' => 'test query'
986+
'query_string' => [
987+
'query' => 'test query'
988988
]
989989
]
990990
]
@@ -1014,8 +1014,8 @@ public function test_if_the_profile_method_builds_correct_payload()
10141014
'query' => [
10151015
'bool' => [
10161016
'must' => [
1017-
'match' => [
1018-
'_all' => 'test query'
1017+
'query_string' => [
1018+
'query' => 'test query'
10191019
]
10201020
]
10211021
]

0 commit comments

Comments
 (0)