Data::SearchEngine::Solr - Data::SearchEngine backend for Solr
my $solr = Data::SearchEngine::Solr->new( url => 'http://localhost:8983/solr', options => { fq => 'category:Foo', facets => 'true' } ); my $query = Data::SearchEngine::Query->new( count => 10, page => 1, query => 'ice cream', ); my $results = $solr->search($query); foreach my $item ($results->items) { print $item->get_value('name')."\n"; }
Data::SearchEngine::Solr is a Data::SearcEngine backend for the Solr search server.
This module is under active development is changing quickly. Patches welcome!
Cory G Watson, <gphat at cpan.org>
<gphat at cpan.org>
Copyright 2009 Cory G Watson.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Data::SearchEngine::Solr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::SearchEngine::Solr
CPAN shell
perl -MCPAN -e shell install Data::SearchEngine::Solr
For more information on module installation, please visit the detailed CPAN module installation guide.