Fix issue w/ tags #3

This commit is contained in:
Kuroshini 2019-11-28 23:43:18 +03:00
parent 846176131e
commit 678377c234

View File

@ -41,6 +41,9 @@ class CustomFacetedSearchFilterBackend(FacetedSearchFilterBackend):
filterer, qs.query._proxied._params[param_type]
)
)
if not len(qs.query._proxied._params['should']) \
and qs.query._proxied._params.get('minimum_should_match'):
qs.query._proxied._params.pop('minimum_should_match')
facet_name = '_filter_' + __field
qs.aggs.bucket(
facet_name,