Bugzilla – Attachment 96682 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.25 KB, created by
Nick Clemens (kidclamp)
on 2019-12-30 12:30:17 UTC
(
hide
)
Description:
Bug 24264: Use raw field when limiting by authtype
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-12-30 12:30:17 UTC
Size:
1.25 KB
patch
obsolete
>From 7768d48d7c0e75d24517d2de4a68d90fa2b2c936 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 >--- > 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