Skip to content

Commit

Permalink
fix(usage-stats): add indices target for usage stats query (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexter Lee authored Jun 29, 2021
1 parent 79f60d8 commit 2ee9ecf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ public List<UsageAggregation> query(@Nonnull String resource, @Nonnull WindowDur

final SearchRequest searchRequest = new SearchRequest();
searchRequest.source(searchSourceBuilder);

final String indexName = indexConvention.getIndexName(USAGE_STATS_BASE_INDEX_NAME);
searchRequest.indices(indexName);

log.debug("Search request is: " + searchRequest.toString());

try {
Expand Down

0 comments on commit 2ee9ecf

Please sign in to comment.