Skip to content

Commit

Permalink
Merge pull request #22 from gbif/dev
Browse files Browse the repository at this point in the history
buildTermQuery modified to allow single value year search
  • Loading branch information
ahakanzn authored Apr 19, 2024
2 parents fd29e5f + 42e67df commit 3995900
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 3995900

Please sign in to comment.