Skip to content

Commit 0b368f4

Browse files
committed
really fix time format interval for date_histogram now
1 parent 3c0b347 commit 0b368f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/datehistogram/DateHistogramFacetProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public class DateHistogramFacetProcessor extends AbstractComponent implements Fa
182182
} else {
183183
// time interval
184184
try {
185-
interval = TimeValue.parseTimeValue(parser.text(), null).millis();
185+
interval = TimeValue.parseTimeValue(sInterval, null).millis();
186186
} catch (Exception e) {
187187
throw new FacetPhaseExecutionException(facetName, "failed to parse interval [" + sInterval + "], tried both as built in intervals (year/month/...) and as a time format");
188188
}

0 commit comments

Comments
 (0)