View | Details | Raw Unified | Return to bug 19604
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-3 / +2 lines)
Lines 315-322 sub build_authorities_query { Link Here
315
            # regular wordlist stuff
315
            # regular wordlist stuff
316
#            push @query_parts, { match => {$wh => { query => $val, operator => 'and' }} };
316
#            push @query_parts, { match => {$wh => { query => $val, operator => 'and' }} };
317
            my @values = split(' ',$val);
317
            my @values = split(' ',$val);
318
            foreach $val (@values) {
318
            foreach my $v (@values) {
319
                push @query_parts, { wildcard => { "$wh.phrase" => "*" . lc $val . "*" } };
319
                push @query_parts, { wildcard => { "$wh.phrase" => "*" . lc $v . "*" } };
320
            }
320
            }
321
        }
321
        }
322
    }
322
    }
323
- 

Return to bug 19604