@@ -87,7 +87,7 @@ public void testMultipleWhereMatch() {
8787 """ ;
8888
8989 var error = expectThrows (ElasticsearchException .class , () -> run (query ));
90- assertThat (error .getMessage (), containsString ("[MATCH ] function cannot be used after LIMIT" ));
90+ assertThat (error .getMessage (), containsString ("[Match ] function cannot be used after LIMIT" ));
9191 }
9292
9393 public void testNotWhereMatch () {
@@ -190,7 +190,7 @@ public void testWhereMatchEvalColumn() {
190190 var error = expectThrows (VerificationException .class , () -> run (query ));
191191 assertThat (
192192 error .getMessage (),
193- containsString ("[MATCH ] function cannot operate on [upper_content], which is not a field from an index mapping" )
193+ containsString ("[Match ] function cannot operate on [upper_content], which is not a field from an index mapping" )
194194 );
195195 }
196196
@@ -205,7 +205,7 @@ public void testWhereMatchOverWrittenColumn() {
205205 var error = expectThrows (VerificationException .class , () -> run (query ));
206206 assertThat (
207207 error .getMessage (),
208- containsString ("[MATCH ] function cannot operate on [content], which is not a field from an index mapping" )
208+ containsString ("[Match ] function cannot operate on [content], which is not a field from an index mapping" )
209209 );
210210 }
211211
@@ -244,7 +244,7 @@ public void testWhereMatchWithRow() {
244244 var error = expectThrows (ElasticsearchException .class , () -> run (query ));
245245 assertThat (
246246 error .getMessage (),
247- containsString ("line 2:15: [MATCH ] function cannot operate on [content], which is not a field from an index mapping" )
247+ containsString ("line 2:15: [Match ] function cannot operate on [content], which is not a field from an index mapping" )
248248 );
249249 }
250250
@@ -255,7 +255,7 @@ public void testMatchWithStats() {
255255 """ ;
256256
257257 var error = expectThrows (ElasticsearchException .class , () -> run (errorQuery ));
258- assertThat (error .getMessage (), containsString ("[MATCH ] function is only supported in WHERE and STATS commands" ));
258+ assertThat (error .getMessage (), containsString ("[Match ] function is only supported in WHERE and STATS commands" ));
259259
260260 var query = """
261261 FROM test
@@ -291,7 +291,7 @@ public void testMatchWithinEval() {
291291 """ ;
292292
293293 var error = expectThrows (VerificationException .class , () -> run (query ));
294- assertThat (error .getMessage (), containsString ("[MATCH ] function is only supported in WHERE and STATS commands" ));
294+ assertThat (error .getMessage (), containsString ("[Match ] function is only supported in WHERE and STATS commands" ));
295295 }
296296
297297 private void createAndPopulateIndex () {
0 commit comments