Bug 20589: Exclude boolean fields from search fields

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
David Gustafsson 2019-01-14 15:59:55 +01:00 committed by Martin Renvoize
parent 1b902612af
commit 8d630cd786
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -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,