Skip to content
Snippets Groups Projects
Commit 33584c43 authored by Julia Bauder's avatar Julia Bauder Committed by Demian Katz
Browse files

Support for combined shards

parent 5812a1be
No related merge requests found
......@@ -28,6 +28,8 @@
; will be suppressed (default).
; filter = One or more filters to apply to search results displayed in the column.
; Use multiple "filter[] = ..." lines if multiple filters are needed.
; shard = Limit results to one or more shards (use names from searches.ini, not
; URLs). Use multiple "shard[] = ..." lines if multiple shards are needed.
;
; All display text is subject to translation and may be added to the language
; .ini files.
......
......@@ -265,6 +265,10 @@ class CombinedController extends AbstractSearch
$query->filter = isset($settings['filter'])
? (array)$settings['filter'] : null;
// Apply shards, if any:
$query->shard = isset($settings['shard'])
? (array)$settings['shard'] : null;
// Reset override to avoid bleed-over from one section to the next!
$query->recommendOverride = false;
......
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