Bugzilla – Attachment 87415 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.36 KB, created by
David Gustafsson
on 2019-04-04 13:58:49 UTC
(
hide
)
Description:
Bug 20589: Exclude boolean fields from search fields
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2019-04-04 13:58:49 UTC
Size:
1.36 KB
patch
obsolete
>From acf97d5e8a6cfbee3e1d6e16b889c5897982cf9d 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 > >--- > 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 0577b32116..8ef46c58cc 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; >@@ -1043,6 +1042,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