Bugzilla – Attachment 57692 Details for
Bug 17132
Availability search broken when using Elastic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17132 - Availability search broken when using Elastic
Bug-17132---Availability-search-broken-when-using-.patch (text/plain), 1.30 KB, created by
Jonathan Druart
on 2016-11-22 08:59:21 UTC
(
hide
)
Description:
Bug 17132 - Availability search broken when using Elastic
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-11-22 08:59:21 UTC
Size:
1.30 KB
patch
obsolete
>From fef8f8bc7497b87ee5a58c2b9aea973aa10cfb83 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 15 Aug 2016 18:12:44 +0000 >Subject: [PATCH] Bug 17132 - Availability search broken when using Elastic > >Elastic appears to be indexing onloan as a string, but our code assumes >it is a boolean. > >Test Plan: >1) Ensure you are set up using Elastic as your search engine >2) Search only for available items from the advanced search >3) Note you get no results >4) Apply this patch >5) Re-run the search >6) You should now get results! > >Signed-off-by: Jennifer Schmidt <jschmidt@switchinc.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > 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 46609c0..53de283 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -741,7 +741,7 @@ sub _fix_limit_special_cases { > push @new_lim, "copydate:$date"; > } > elsif ( $l =~ /^available$/ ) { >- push @new_lim, 'onloan:false'; >+ push @new_lim, 'onloan:0'; > } > else { > push @new_lim, $l; >-- >2.1.4
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 17132
:
54490
|
55262
| 57692