[Koha-bugs] [Bug 18235] Elastic search - Configurable facets
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 1 08:35:48 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18235
--- Comment #51 from Josef Moravec <josef.moravec at gmail.com> ---
Comment on attachment 85212
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=85212
Bug 18235: ES - Facets configurable
Review of attachment 85212:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=18235&attachment=85212)
-----------------------------------------------------------------
::: Koha/SearchEngine/Elasticsearch.pm
@@ +971,5 @@
> + my @faceted_fields = Koha::SearchFields->search(
> + { name => { -in => \@search_field_names }, facet_order => { '!=' => undef } }, { order_by => ['facet_order'] }
> + );
> + my @not_faceted_fields = Koha::SearchFields->search(
> + { name => { -in => \@search_field_names }, facet_order => undef }, { order_by => ['facet_order'] }
Why do you retrieve fields from database in 2 queries, you always use them all.
::: admin/searchengine/elasticsearch/mappings.pl
@@ +215,4 @@
> push @all_search_fields, $search_field_unblessed;
> }
>
> +my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields();
get_facetable_fields is called 3 or 4 times every run of mappings.pl.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list