Bugzilla – Attachment 103697 Details for
Bug 25278
Search fields cache must be separate for different indexes under Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25278: Retrieve correct search fields for authorities
Bug-25278-Retrieve-correct-search-fields-for-autho.patch (text/plain), 1.11 KB, created by
Nick Clemens
on 2020-04-24 15:53:11 UTC
(
hide
)
Description:
Bug 25278: Retrieve correct search fields for authorities
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2020-04-24 15:53:11 UTC
Size:
1.11 KB
patch
obsolete
>From 565ffea3cbf846c5c38bb5fe27159ff332249c2c Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 24 Apr 2020 15:52:50 +0000 >Subject: [PATCH] Bug 25278: Retrieve correct search fields for authorities > >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index 1bbbf079b8..f9bc217401 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -1139,7 +1139,7 @@ sub _search_fields { > subfield => undef, > }; > my $cache = Koha::Caches->get_instance(); >- my $cache_key = 'elasticsearch_search_fields' . ($params->{is_opac} ? '_opac' : '_staff_client'); >+ my $cache_key = 'elasticsearch_search_fields' . ($params->{is_opac} ? '_opac' : '_staff_client') . $self->index; > my $search_fields = $cache->get_from_cache($cache_key, { unsafe => 1 }); > if (!$search_fields) { > # The reason we don't use Koha::SearchFields->search here is we don't >-- >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 25278
:
103697
|
103699
|
103700
|
103793
|
104896
|
104897
|
104898
|
104939
|
104944
|
104945
|
104946
|
104947