Bugzilla – Attachment 85991 Details for
Bug 18235
Elastic search - Configurable facets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18235: Do not call get_facetable_fields excessively
Bug-18235-Do-not-call-getfacetablefields-excessive.patch (text/plain), 1.57 KB, created by
Josef Moravec
on 2019-03-04 13:58:00 UTC
(
hide
)
Description:
Bug 18235: Do not call get_facetable_fields excessively
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-03-04 13:58:00 UTC
Size:
1.57 KB
patch
obsolete
>From ec8df2120505cf5123e99b67f440f2173537982f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sun, 3 Mar 2019 21:36:22 -0300 >Subject: [PATCH] Bug 18235: Do not call get_facetable_fields excessively > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > admin/searchengine/elasticsearch/mappings.pl | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/admin/searchengine/elasticsearch/mappings.pl b/admin/searchengine/elasticsearch/mappings.pl >index de891ac9ea..f91399aa9d 100755 >--- a/admin/searchengine/elasticsearch/mappings.pl >+++ b/admin/searchengine/elasticsearch/mappings.pl >@@ -176,6 +176,7 @@ for my $index_name (@index_names) { > } > } > >+my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields(); > for my $index_name (@index_names) { > my $search_fields = Koha::SearchFields->search( > { 'search_marc_map.index_name' => $index_name, 'search_marc_map.marc_type' => $marc_type, }, >@@ -187,7 +188,6 @@ for my $index_name (@index_names) { > ); > > my @mappings; >- my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields(); > my @facetable_field_names = map { $_->name } @facetable_fields; > > while ( my $s = $search_fields->next ) { >@@ -215,7 +215,6 @@ while ( my $search_field = $search_fields->next ) { > push @all_search_fields, $search_field_unblessed; > } > >-my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields(); > $template->param( > indexes => \@indexes, > all_search_fields => \@all_search_fields, >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18235
:
60931
|
60932
|
60933
|
61528
|
61529
|
61530
|
64747
|
69485
|
69486
|
69487
|
72936
|
72937
|
72938
|
72999
|
73000
|
73001
|
73193
|
74642
|
74643
|
75995
|
75996
|
85212
|
85213
|
85214
|
85215
|
85216
|
85885
|
85886
|
85969
|
85970
|
85983
|
85984
|
85985
|
85986
|
85987
|
85988
|
85989
|
85990
|
85991
|
85992
|
86340
|
86341
|
86342
|
86343
|
86344
|
86345
|
86346
|
86347
|
86348
|
86349
|
86350
|
86944
|
86945
|
86946
|
86947
|
86948
|
86949
|
86950
|
86951
|
86952
|
86953
|
86954
|
86955
|
86956
|
87141