webservice-solr icon indicating copy to clipboard operation
webservice-solr copied to clipboard

search() should not modified its arguments

Open petdance opened this issue 5 years ago • 0 comments

search() modifies the $params sent to it. It should not do this.

sub search {
    my ( $self, $query, $params ) = @_;
    $params ||= {};
    $params->{ 'q' } = $query;
    return $self->generic_solr_request( 'select', $params );
}

petdance avatar Jan 10 '20 19:01 petdance