@@ -, +, @@ 1 - Have koha using ES 2 - Go to advanced search 3 - Limit by a single itemtype that exists 4 - Get some results 5 - Limit by a different itemtype that exists 6 - Get some results 7 - Limit by both itemtypes 8 - Get only the results for the second itemtype 9 - Enable DumpTemplateVarsIntranet and DumpSearchQueryTemplate --- Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + 1 file changed, 1 insertion(+) --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -1014,6 +1014,7 @@ sub _fix_limit_special_cases { } else { my ( $field, $term ) = $l =~ /^\s*([\w,-]*?):(.*)/; + $field =~ s/,phr$//; #We are quoting all the limits as phrase, this prevents from quoting again later if ( defined($field) && defined($term) ) { push @new_lim, "$field:(\"$term\")"; } --