Data-SearchEngine-Solr

 view release on metacpan or  search on metacpan

README.mkdn  view on Meta::CPAN

## FILTERS

This module uses the values from Data::SearchEngine::Query's `filters` to
populate the `fq` parameter.  Before talking to Solr we iterate over the
filters and add the filter's value to `fq`.

  $query->filters->{'last name watson'} = 'last_name:watson';

Will results in fq=name:watson.  Multiple filters will be appended.

## FACETS

Facets may be enabled thusly:

  $solr->options->{facets} = 'true';
  $solr->options->{facet.field} = 'somefield';

You may also use other `facet.*` parameters, as defined by Solr.

To access facet data, consult the documentation for
[Data::SearchEngine::Results](http://search.cpan.org/perldoc?Data::SearchEngine::Results) and it's `facets` method.

lib/Data/SearchEngine/Solr.pm  view on Meta::CPAN

=head2 FILTERS

This module uses the values from Data::SearchEngine::Query's C<filters> to
populate the C<fq> parameter.  Before talking to Solr we iterate over the
filters and add the filter's value to C<fq>.

  $query->filters->{'last name watson'} = 'last_name:watson';

Will results in fq=name:watson.  Multiple filters will be appended.

=head2 FACETS

Facets may be enabled thusly:

  $solr->options->{facets} = 'true';
  $solr->options->{facet.field} = 'somefield';

You may also use other C<facet.*> parameters, as defined by Solr.

To access facet data, consult the documentation for
L<Data::SearchEngine::Results> and it's C<facets> method.



( run in 1.056 second using v1.01-cache-2.11-cpan-49f99fa48dc )