Bugzilla – Attachment 93350 Details for
Bug 20589
Add field boosting and use elastic query fields parameter instead of deprecated _all
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20589: Exclude boolean fields from search fields
Bug-20589-Exclude-boolean-fields-from-search-field.patch (text/plain), 1.42 KB, created by
Nick Clemens (kidclamp)
on 2019-10-01 09:24:20 UTC
(
hide
)
Description:
Bug 20589: Exclude boolean fields from search fields
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2019-10-01 09:24:20 UTC
Size:
1.42 KB
patch
obsolete
>From dda40528eb0422952f11a3c08b1f1e8900c7d393 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Mon, 14 Jan 2019 15:59:55 +0100 >Subject: [PATCH] Bug 20589: Exclude boolean fields from search fields > >Signed-off-by: Nick Clemens <nick@bywatersolutions.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 75e6ef782f..53cbdc36a5 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -80,7 +80,6 @@ sub build_query { > > my $stemming = C4::Context->preference("QueryStemming") || 0; > my $auto_truncation = C4::Context->preference("QueryAutoTruncate") || 0; >- my $weight_fields = C4::Context->preference("QueryWeightFields") || 0; > my $fuzzy_enabled = C4::Context->preference("QueryFuzzy") || 0; > > $query = '*' unless defined $query; >@@ -1065,6 +1064,7 @@ sub _search_fields { > ) : ( > 'staff_client' => 1 > ), >+ 'type' => { '!=' => 'boolean' }, > 'search_marc_map.index_name' => $self->index, > 'search_marc_map.marc_type' => C4::Context->preference('marcflavour'), > 'search_marc_to_fields.search' => 1, >-- >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 20589
:
74245
|
74249
|
74301
|
74373
|
74418
|
74419
|
82503
|
82544
|
83016
|
83019
|
87358
|
87411
|
87412
|
87415
|
87416
|
92454
|
92455
|
92456
|
92457
|
93238
|
93239
|
93240
|
93241
|
93247
|
93248
|
93249
|
93250
|
93251
|
93348
|
93349
|
93350
|
93351
|
93352
|
93353
|
93379
|
93380
|
93381
|
93382
|
93383
|
93384
|
93590
|
93624