Skip to content

Commit

Permalink
Filter NFTs by full tag (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghel authored Sep 20, 2024
1 parent 28dce31 commit 2844314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/indexer/elastic/elastic.indexer.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export class ElasticIndexerHelper {
}

if (filter.tags) {
elasticQuery = elasticQuery.withMustCondition(QueryType.Should(filter.tags.map(tag => QueryType.Nested("data", [new MatchQuery("data.tags", tag)]))));
elasticQuery = elasticQuery.withMustCondition(QueryType.Should(filter.tags.map(tag => QueryType.Nested("data", [new MatchQuery("data.tags", tag, QueryOperator.AND)]))));
}

if (filter.creator !== undefined) {
Expand Down

0 comments on commit 2844314

Please sign in to comment.