Skip to content

Commit

Permalink
Reset to master and add default case to switch
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Voigt <[email protected]>
  • Loading branch information
DominikVoigt committed Sep 21, 2020
1 parent 6a6db58 commit 0df7981
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static ComplexSearchQuery fromTerms(Collection<Term> terms) {
case "year" -> builder.singleYear(Integer.valueOf(termText));
case "year-range" -> builder.parseYearRange(termText);
case "default" -> builder.defaultFieldPhrase(termText);
default -> builder.defaultFieldPhrase(term.field() + ":" + termText);
}
});
return builder.build();
Expand Down

0 comments on commit 0df7981

Please sign in to comment.