Skip to content

Commit

Permalink
fix(elasticsearch-plugin): Correctly report facetValue counts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Aug 22, 2019
1 parent eb587f5 commit 2f8af7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/elasticsearch-plugin/src/elasticsearch.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export class ElasticsearchService {
},
};
const { body }: { body: SearchResponseBody<VariantIndexItem> } = await this.client.search({
index: indexPrefix + VARIANT_INDEX_NAME,
type: VARIANT_INDEX_TYPE,
index: indexPrefix + (input.groupByProduct ? PRODUCT_INDEX_NAME : VARIANT_INDEX_NAME),
type: input.groupByProduct ? PRODUCT_INDEX_TYPE : VARIANT_INDEX_TYPE,
body: elasticSearchBody,
});

Expand Down

0 comments on commit 2f8af7c

Please sign in to comment.