@@ -, +, @@ QueryParser the keyword 'history' while a smaller subset contain both 'history' and 'earth'. (The exact words used don't matter.) kw:history && kw:earth in the database with the keyword 'history'. In other words, the restriction that the records must also contain 'earth' is not observed. that contain both 'history' and 'earth'. --- Koha/QueryParser/Driver/PQF.pm | 3 --- t/QueryParser.t | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) --- a/Koha/QueryParser/Driver/PQF.pm +++ a/Koha/QueryParser/Driver/PQF.pm @@ -111,7 +111,6 @@ sub add_bib1_field_map { my ($self, $class, $field, $server, $attributes) = @_; $self->add_search_field( $class => $field ); - $self->add_search_field_alias( $class => $field => $field ); return $self->_add_field_mapping($self->bib1_field_map, $class, $field, $server, $attributes); } @@ -542,8 +541,6 @@ sub initialize { $self->add_bib1_field_map( $class => $field => $server => $bib1_mapping ); } - $self->add_search_field_alias( $class => $field => - $field_mappings->{$class}->{$field}->{'index'} ); foreach my $alias ( @{ $field_mappings->{$class}->{$field}->{'aliases'} } ) { --- a/t/QueryParser.t +++ a/t/QueryParser.t @@ -44,9 +44,7 @@ my $desired_config = { 'field_mappings' => { 'author' => { 'personal' => { - 'aliases' => [ - 'personal' - ], + 'aliases' => [ ], 'bib1_mapping' => { 'biblioserver' => { '1' => '1004' --