Commit 5c69fd28 authored by Carine Dengler's avatar Carine Dengler
Browse files

[FacetedSearch] added sort kwarg

parent cc6e8b5bf86e
Pipeline #13403 passed with stage
in 3 minutes and 5 seconds
......@@ -58,6 +58,7 @@ class CWFacetedSearch(FacetedSearch):
def __init__(self, query=None,
filters={},
sort=(),
doc_types=None,
index=None,
form=None,
......@@ -74,7 +75,7 @@ class CWFacetedSearch(FacetedSearch):
# Count all the hits by default
self.track_total_hits = track_total_hits
self.extra_kwargs = kwargs
super(CWFacetedSearch, self).__init__(query, filters)
super(CWFacetedSearch, self).__init__(query, filters, sort=sort)
def search(self):
# override methods to add custom pieces
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment