diff --git a/search-api/search-core/src/main/java/org/sunbird/search/processor/SearchProcessor.java b/search-api/search-core/src/main/java/org/sunbird/search/processor/SearchProcessor.java index f8f40268b..d51a749f3 100644 --- a/search-api/search-core/src/main/java/org/sunbird/search/processor/SearchProcessor.java +++ b/search-api/search-core/src/main/java/org/sunbird/search/processor/SearchProcessor.java @@ -913,7 +913,7 @@ private static QueryBuilder getPostFilterQuery(Map postFilter) { nestedBoolQuery.must(QueryBuilders.termQuery(filters.getKey(), value)); } } else if (filters.getValue() instanceof String) { - nestedBoolQuery.should(QueryBuilders.termQuery(filters.getKey(), ((String) filters.getValue()).toLowerCase())); + nestedBoolQuery.must(QueryBuilders.termQuery(filters.getKey(), ((String) filters.getValue()).toLowerCase())); } }