Skip to content

Commit

Permalink
Integration test for match_phrase_prefix in PPL with all parameters.
Browse files Browse the repository at this point in the history
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
  • Loading branch information
MaxKsyunz committed Jun 16, 2022
1 parent ea512f8 commit 2c65764
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@ public void match_phrase_prefix_required_parameters() throws IOException {
+ "| where match_phrase_prefix(address, 'Quentin Str') | fields lastname");
verifyDataRows(result, rows("Mcpherson"));
}

@Test
public void match_phrase_prefix_all_parameters() throws IOException {
JSONObject result = executeQuery("source=" + TEST_INDEX_BANK
+ "| where match_phrase_prefix(address, 'Quentin Str', "
+ "boost = 1.0, zero_terms_query='ALL',max_expansions = 3, analyzer='standard') "
+ "| fields lastname");
verifyDataRows(result, rows("Mcpherson"));
}
}

0 comments on commit 2c65764

Please sign in to comment.