Search::OpenSearch is a Perl module, a work-in-progress. The API is subject to change.
Search::OpenSearch is a framework for various backend engines to return results comforming to the OpenSearch API (http://opensearch.org/).
SYNOPSIS
use Search::OpenSearch;
my $engine = Search::OpenSearch->engine(
type => 'KSx',
index => [qw( path/to/index1 path/to/index2 )],
facets => {
names => [qw( color size flavor )],
sample_size => 10_000,
},
fields => [qw( color size flavor )],
);
my $response = $engine->search(
q => 'quick brown fox', # query
s => 'rank desc', # sort order
o => 0, # offset
p => 25, # page size
h => 1, # highlight query terms in results
c => 0, # count total only (same as f=0 r=0)
L => 'field|low|high', # limit results to inclusive range
f => 1, # include facets
r => 1, # include results
format => 'XML', # or JSON
b => 'AND', # or OR
);
print $response;
Product's homepage
Requirements:
· Perl