mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
really fix time format interval for date_histogram now
This commit is contained in:
parent
1d240aaff6
commit
185cd68045
@ -182,7 +182,7 @@ public class DateHistogramFacetProcessor extends AbstractComponent implements Fa
|
||||
} else {
|
||||
// time interval
|
||||
try {
|
||||
interval = TimeValue.parseTimeValue(parser.text(), null).millis();
|
||||
interval = TimeValue.parseTimeValue(sInterval, null).millis();
|
||||
} catch (Exception e) {
|
||||
throw new FacetPhaseExecutionException(facetName, "failed to parse interval [" + sInterval + "], tried both as built in intervals (year/month/...) and as a time format");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user