Bugzilla – Attachment 97224 Details for
Bug 22426
Elasticsearch - Index location is missing in advanced search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22426: Map 'loc' to 'location' when building ES queries
Bug-22426-Map-loc-to-location-when-building-ES-que.patch (text/plain), 1.71 KB, created by
Jonathan Druart
on 2020-01-10 14:20:25 UTC
(
hide
)
Description:
Bug 22426: Map 'loc' to 'location' when building ES queries
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-01-10 14:20:25 UTC
Size:
1.71 KB
patch
obsolete
>From a59efdcc666f772cbb754fd1d9e15372d4a25867 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 17 Jun 2019 16:09:38 +0200 >Subject: [PATCH] Bug 22426: Map 'loc' to 'location' when building ES queries >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >A search made on Shelving location tab in advanced search gives 0 result. > >Test plan : >Without patch: > - in advanced search, choose a location in shelving location tab and start search (opac-search.pl?idx=kw&op=and&idx=kw&op=and&idx=kw&do=Search&limit=mc-loc) > - 0 result > - check that location exist by doing a simple search and filtering on the location facet > - have some results >With patch: > - in advanced search, choose a location in shelving location tab and start search (opac-search.pl?idx=kw&op=and&idx=kw&op=and&idx=kw&do=Search&limit=mc-loc) > - found results > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index 05804e3640..93ac31bc2e 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -675,6 +675,7 @@ our %index_field_convert = ( > 'mc-ccode' => 'ccode', > 'branch' => 'homebranch', > 'mc-loc' => 'location', >+ 'loc' => 'location', > 'stocknumber' => 'number-local-acquisition', > 'inv' => 'number-local-acquisition', > 'bc' => 'barcode', >-- >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 22426
:
89378
|
90670
|
93397
|
93398
|
97223
| 97224