Lines 90-95
sub build_query {
Link Here
|
90 |
query => $query, |
90 |
query => $query, |
91 |
fuzziness => $fuzzy_enabled ? 'auto' : '0', |
91 |
fuzziness => $fuzzy_enabled ? 'auto' : '0', |
92 |
default_operator => 'AND', |
92 |
default_operator => 'AND', |
|
|
93 |
default_field => '_all_fields', |
93 |
lenient => JSON::true, |
94 |
lenient => JSON::true, |
94 |
} |
95 |
} |
95 |
}; |
96 |
}; |
Lines 292-298
sub build_authorities_query {
Link Here
|
292 |
my @filter_parts; |
293 |
my @filter_parts; |
293 |
foreach my $s ( @{ $search->{searches} } ) { |
294 |
foreach my $s ( @{ $search->{searches} } ) { |
294 |
my ( $wh, $op, $val ) = @{$s}{qw(where operator value)}; |
295 |
my ( $wh, $op, $val ) = @{$s}{qw(where operator value)}; |
295 |
$wh = '_all' if $wh eq ''; |
296 |
$wh = '_all_fields' if $wh eq ''; |
296 |
if ( $op eq 'is' || $op eq '=' ) { |
297 |
if ( $op eq 'is' || $op eq '=' ) { |
297 |
|
298 |
|
298 |
# look for something that matches completely |
299 |
# look for something that matches completely |
Lines 512-518
types.
Link Here
|
512 |
=cut |
513 |
=cut |
513 |
|
514 |
|
514 |
our %index_field_convert = ( |
515 |
our %index_field_convert = ( |
515 |
'kw' => '', |
516 |
'kw' => '_all_fields', |
516 |
'ti' => 'title', |
517 |
'ti' => 'title', |
517 |
'au' => 'author', |
518 |
'au' => 'author', |
518 |
'su' => 'subject', |
519 |
'su' => 'subject', |
519 |
- |
|
|