File tree 1 file changed +17
-11
lines changed
1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -366,16 +366,22 @@ sub by_author_and_names {
366
366
query => {
367
367
bool => {
368
368
should => [
369
- map { +{
370
- query => {
371
- bool => {
372
- must => [
373
- { term => { author => uc ($_ -> {author }) } },
374
- { term => { ' name' => $_ -> {name } } },
375
- ]
369
+ map {
370
+ +{
371
+ query => {
372
+ bool => {
373
+ must => [
374
+ {
375
+ term => {
376
+ author => uc ( $_ -> {author } )
377
+ }
378
+ },
379
+ { term => { ' name' => $_ -> {name } } },
380
+ ]
381
+ }
376
382
}
377
383
}
378
- } } @$releases
384
+ } @$releases
379
385
]
380
386
}
381
387
}
@@ -389,15 +395,15 @@ sub by_author_and_names {
389
395
return unless $ret -> {hits }{total };
390
396
391
397
my @releases ;
392
- for my $hit (@{ $ret -> {hits }{hits } }) {
398
+ for my $hit ( @{ $ret -> {hits }{hits } } ) {
393
399
my $src = $hit -> {_source };
394
400
single_valued_arrayref_to_scalar($src );
395
401
push @releases , $src ;
396
402
}
397
403
398
404
return {
399
- took => $ret -> {took },
400
- total => $ret -> {hits }{total },
405
+ took => $ret -> {took },
406
+ total => $ret -> {hits }{total },
401
407
releases => \@releases ,
402
408
};
403
409
}
You can’t perform that action at this time.
0 commit comments