Skip to content

Commit

Permalink
Merge branch 'development' into SERVICES-2602-update-deprecated-query…
Browse files Browse the repository at this point in the history
…-with-the-latest
  • Loading branch information
cfaur09 committed Sep 20, 2024
2 parents 276e171 + 2844314 commit aaf72ab
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 aaf72ab

Please sign in to comment.