File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
integ-test/src/test/java/org/opensearch/sql/ppl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public void slop_is_2() throws IOException {
98
98
// When slop is 2, the terms are matched exactly in the order specified.
99
99
// 'open' is used to match prefix of the next term.
100
100
String query =
101
- "source = %s" + " | where match_phrase_prefix(Tags, 'gas ta', slop=2) " + " | fields Tags" ;
101
+ "source = %s | where match_phrase_prefix(Tags, 'gas ta', slop=2) | fields Tags" ;
102
102
JSONObject result = executeQuery (String .format (query , TEST_INDEX_BEER ));
103
103
verifyDataRows (result , rows ("taste gas" ));
104
104
}
@@ -107,7 +107,7 @@ public void slop_is_2() throws IOException {
107
107
public void slop_is_3 () throws IOException {
108
108
// When slop is 3, results will include phrases where the query terms are transposed.
109
109
String query =
110
- "source = %s" + " | where match_phrase_prefix(Tags, 'gas ta', slop=3)" + " | fields Tags" ;
110
+ "source = %s | where match_phrase_prefix(Tags, 'gas ta', slop=3) | fields Tags" ;
111
111
JSONObject result = executeQuery (String .format (query , TEST_INDEX_BEER ));
112
112
verifyDataRows (result , rows ("taste draught gas" ), rows ("taste gas" ));
113
113
}
You can’t perform that action at this time.
0 commit comments