Skip to content

Commit

Permalink
fix pipeline order to ensure wildcard searches against search fields …
Browse files Browse the repository at this point in the history
…are analyzed (ex. lowercased)
  • Loading branch information
mdavis95 committed May 5, 2022
1 parent a799bb2 commit 5d0c468
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public ZuliaQueryNodeProcessorPipeline(QueryConfigHandler queryConfig) {

//zulia - add global min match handler
add(new ZuliaGlobalMinMatchProcessor());
add(new WildcardQueryNodeProcessor());
//zulia - change MultiFieldQueryNodeProcessor to ZuliaMultiFieldQueryNodeProcessor
add(new ZuliaMultiFieldQueryNodeProcessor());
add(new WildcardQueryNodeProcessor());
add(new ZuliaPureWildcardNodeProcessor());
add(new FuzzyQueryNodeProcessor());
add(new RegexpQueryNodeProcessor());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public void basicTest() throws Exception {

Assertions.assertEquals(q, q2);

q = parse("Lung* Cancer*", List.of("title", "abstract"), Operator.OR, 0, oldParser);
q2 = parse("Lung* Cancer*", List.of("title", "abstract"), Operator.OR, 0, newParser);

Assertions.assertEquals(q, q2);

oldParser.setSplitOnWhitespace(true);
q = parse("Lung Cancer", List.of("field1", "field2"), Operator.OR, 0, oldParser);
q2 = parse("Lung Cancer", List.of("field1", "field2"), Operator.OR, 0, newParser);
Expand Down

0 comments on commit 5d0c468

Please sign in to comment.