Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Compatible with OpenSearch 3.1.0

### Bug Fixes
- Fix incorrect task state handling in ForecastRunOnceTransportAction ([#1489](https://github.com/opensearch-project/anomaly-detection/pull/1489))
- Fix incorrect task state handling in ForecastRunOnceTransportAction ([#1493](https://github.com/opensearch-project/anomaly-detection/pull/1493))


Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.opensearch.search.sort.FieldSortBuilder;
import org.opensearch.search.sort.SortOrder;
import org.opensearch.timeseries.AnalysisType;
import org.opensearch.timeseries.constant.CommonName;
import org.opensearch.timeseries.feature.SearchFeatureDao;
import org.opensearch.timeseries.model.Config;
import org.opensearch.timeseries.model.IntervalTimeConfiguration;
Expand Down Expand Up @@ -119,7 +120,9 @@ public void getTopEntity(ActionListener<Pair<Optional<Long>, Map<String, Object>
.getTimeRangeBounds(new IntervalTimeConfiguration(maxIntervalInMinutes, ChronoUnit.MINUTES), latestTimeMillis);
RangeQueryBuilder rangeQuery = new RangeQueryBuilder(config.getTimeField())
.from(timeRangeBounds.getMin())
.to(timeRangeBounds.getMax());
.to(timeRangeBounds.getMax())
// user index time field might not have epoch_millis format, so we need to format it
.format(CommonName.EPOCH_MILLIS_FORMAT);
AggregationBuilder bucketAggs;
Map<String, Object> topKeys = new HashMap<>();
if (config.getCategoryFields().size() == 1) {
Expand Down
Loading