19declare(strict_types=1);
37 protected LOMServices $lom_services,
46 if ($this->
http->wrapper()->post()->has(
'queryString')) {
47 $term = $this->
http->wrapper()->post()->retrieve(
49 $this->
refinery->kindlyTo()->string()
52 $qp->parseAutoWildcard();
53 return $qp->getQuery();
72 $search_filter_data = $filter->
getData();
76 $creation_filter = [];
78 $this->
settings->isDateFilterEnabled() &&
79 isset($search_filter_data[
'search_date'])
81 $creation_filter[
'date_start'] = $search_filter_data[
'search_date'][0];
82 $creation_filter[
'date_end'] = $search_filter_data[
'search_date'][1];
86 $types_from_filter = (array) ($search_filter_data[
'search_type'] ?? []);
89 foreach ($this->
settings->getEnabledLuceneItemFilterDefinitions() as $type =>
$data) {
90 if (in_array($type, $types_from_filter)) {
91 $enabled_types[$type] = 1;
96 $enabled_mime_types = [];
97 foreach ($this->
settings->getEnabledLuceneMimeFilterDefinitions() as $mime_type =>
$data) {
98 if (in_array($mime_type, $types_from_filter)) {
99 $enabled_mime_types[$mime_type] = 1;
104 $copyright_filter = [];
106 $this->lom_services->copyrightHelper()->isCopyrightSelectionActive() &&
107 isset($search_filter_data[
'search_copyright'])
109 $copyright_filter = $search_filter_data[
'search_copyright'];
The scope of this class is split ilias-conform URI's into components.
fetchRequestedRemoteSearchTerm()
propably needs to be replaced with a completely different mechanism when switching to KS
loadFilterToCache(ilSearchFilterGUI $filter, ilUserSearchCache $cache)
__construct(protected ilSearchSettings $settings, protected LOMServices $lom_services, HTTP $http, Refinery $refinery)
Class for storing search result.
setCreationFilter(array $a_filter)
setItemFilter(array $a_filter)
setMimeFilter(array $a_filter)
setRoot(int $a_root)
set root node of search
static _getInstance(int $a_usr_id)
setCopyrightFilter(string ... $copyright_identifiers)
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc