Bugzilla – Attachment 96733 Details for
Bug 24264
Elasticsearch - Cannot search for genre/form authorities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24264: Use raw field when limiting by authtype
Bug-24264-Use-raw-field-when-limiting-by-authtype.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2020-01-02 11:41:02 UTC
(
hide
)
Description:
Bug 24264: Use raw field when limiting by authtype
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-01-02 11:41:02 UTC
Size:
1.39 KB
patch
obsolete
>From 87f3b1f169cc2f880d673119b92f3cf2e4a70246 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 18 Dec 2019 14:12:16 +0000 >Subject: [PATCH] Bug 24264: Use raw field when limiting by authtype > >To test: >1 - Have a genre form record in your authorities file >2 - Search authorities for 'Default' >3 - The result is returned >4 - Set the dropdown to 'Genre/Form' and search matchign term >5 - No results >6 - Apply patch >7 - Restart all the things >8 - Repeat search for 'Genre/Form' and search matching term >9 - Record is returned > >Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 e744961df4..0aa8317b63 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -358,7 +358,7 @@ sub build_authorities_query { > } > }; > if ( $search->{authtypecode} ) { >- $query->{query}->{bool}->{filter} = { term => { 'authtype' => lc $search->{authtypecode} } }; >+ $query->{query}->{bool}->{filter} = { term => { 'authtype.raw' => $search->{authtypecode} } }; > } > > my %s; >-- >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 24264
:
96421
|
96682
|
96694
| 96733