|
Lines 80-86
sub build_query {
Link Here
|
| 80 |
|
80 |
|
| 81 |
my $stemming = C4::Context->preference("QueryStemming") || 0; |
81 |
my $stemming = C4::Context->preference("QueryStemming") || 0; |
| 82 |
my $auto_truncation = C4::Context->preference("QueryAutoTruncate") || 0; |
82 |
my $auto_truncation = C4::Context->preference("QueryAutoTruncate") || 0; |
| 83 |
my $weight_fields = C4::Context->preference("QueryWeightFields") || 0; |
|
|
| 84 |
my $fuzzy_enabled = C4::Context->preference("QueryFuzzy") || 0; |
83 |
my $fuzzy_enabled = C4::Context->preference("QueryFuzzy") || 0; |
| 85 |
|
84 |
|
| 86 |
$query = '*' unless defined $query; |
85 |
$query = '*' unless defined $query; |
|
Lines 1043-1048
sub _search_fields {
Link Here
|
| 1043 |
) : ( |
1042 |
) : ( |
| 1044 |
'staff_client' => 1 |
1043 |
'staff_client' => 1 |
| 1045 |
), |
1044 |
), |
|
|
1045 |
'type' => { '!=' => 'boolean' }, |
| 1046 |
'search_marc_map.index_name' => $self->index, |
1046 |
'search_marc_map.index_name' => $self->index, |
| 1047 |
'search_marc_map.marc_type' => C4::Context->preference('marcflavour'), |
1047 |
'search_marc_map.marc_type' => C4::Context->preference('marcflavour'), |
| 1048 |
'search_marc_to_fields.search' => 1, |
1048 |
'search_marc_to_fields.search' => 1, |
| 1049 |
- |
|
|