From 2844314b61b7f0b36dc2dc267073517eca2ad827 Mon Sep 17 00:00:00 2001 From: Traian Anghel Date: Fri, 20 Sep 2024 11:18:38 +0300 Subject: [PATCH] Filter NFTs by full tag (#1332) --- src/common/indexer/elastic/elastic.indexer.helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/indexer/elastic/elastic.indexer.helper.ts b/src/common/indexer/elastic/elastic.indexer.helper.ts index 82addbe12..75e107bb0 100644 --- a/src/common/indexer/elastic/elastic.indexer.helper.ts +++ b/src/common/indexer/elastic/elastic.indexer.helper.ts @@ -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) {