Skip to content

Commit

Permalink
buildTermQuery modified to allow single value year search #21
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakanzn committed Apr 19, 2024
1 parent f004a68 commit 42e67df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private List<QueryBuilder> buildTermQuery(Collection<String> values, P param, St
// collect queries for each value
List<String> parsedValues = new ArrayList<>();
for (String value : values) {
if (isNumericRange(value) || isDateRange(value)) {
if (isNumericRange(value) || (esFieldMapper.isDateField(esField) && isDateRange(value))) {
queries.add(buildRangeQuery(esField, value));
continue;
}
Expand Down

0 comments on commit 42e67df

Please sign in to comment.