You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utils/search/backends/solr555pysolr.py
+28-15Lines changed: 28 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -676,21 +676,34 @@ def search_sounds(self, textual_query='', query_fields=None, query_filter='', fi
676
676
677
677
# Configure grouping
678
678
ifgroup_by_pack:
679
-
query.set_group_field(group_field="pack_grouping"ifnotsimilar_toelse"pack_grouping_child") # We name the fields differently to avoid solr conflicts with matches of both child and parent docs
680
-
query.set_group_options(
681
-
group_func=None,
682
-
group_query=None,
683
-
group_rows=10, # TODO: if limit is lower than rows and start=0, this should probably be equal to limit
684
-
group_start=0,
685
-
group_limit=num_sounds_per_pack_group, # This is the number of documents that will be returned for each group.
self.num_found=response["response"]["numFound"] # Note that using "Collapse and Expand" for grouping we can't get the total number of uncollapsed matches
0 commit comments