262 |
$q .= ' AND ((' . join(') OR (', map { "input=\"$_\"" } @only_input) . '))' if @only_input; |
$q .= ' AND ((' . join(') OR (', map { "input=\"$_\"" } @only_input) . '))' if @only_input; |
263 |
|
|
264 |
warn "# query: $q\n"; |
warn "# query: $q\n"; |
265 |
my $swish_results = $swish->query( $q ); |
my $search_obj = $swish->new_search_object; |
266 |
|
if ( my $sort = param('sort') ) { |
267 |
|
$search_obj->set_sort( $sort ); |
268 |
|
} |
269 |
|
my $swish_results = $search_obj->execute( $q ); |
270 |
|
|
271 |
dump_yaml( 'swish_results', $swish_results ); |
dump_yaml( 'swish_results', $swish_results ); |
272 |
|
|