really fix time format interval for date_histogram now

This commit is contained in:
kimchy 2011-03-02 00:39:18 +02:00
parent 1d240aaff6
commit 185cd68045
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ public class DateHistogramFacetProcessor extends AbstractComponent implements Fa
} else { } else {
// time interval // time interval
try { try {
interval = TimeValue.parseTimeValue(parser.text(), null).millis(); interval = TimeValue.parseTimeValue(sInterval, null).millis();
} catch (Exception e) { } 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"); throw new FacetPhaseExecutionException(facetName, "failed to parse interval [" + sInterval + "], tried both as built in intervals (year/month/...) and as a time format");
} }