try to fix issue w/ filters
This commit is contained in:
parent
da9f393a52
commit
2492000ae6
|
|
@ -110,7 +110,7 @@ class CustomFacetedSearchFilterBackend(FacetedSearchFilterBackend):
|
|||
facet_name = '_filter_' + __field
|
||||
all_tag_categories = list(TagCategoryDocument.search() \
|
||||
.filter('term', public=True) \
|
||||
.filter(Q('term', value_type=TagCategory.LIST) | Q('match', index_name='wine-color'))[0:100000])
|
||||
.filter(Q('term', value_type=TagCategory.LIST) | Q('match', index_name='wine-color'))[0:1000])
|
||||
for category in all_tag_categories:
|
||||
tags_to_remove = list(map(lambda t: str(t.id), category.tags))
|
||||
qs = queryset.__copy__()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user