Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Search::OpenSearch 0.15

    Download button

    No screenshots available
    Downloads: 138  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Peter Karman | More programs
    Perl Artistic License / FREE
    November 1st, 2011, 01:56 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Search::OpenSearch description

    Provide search results in OpenSearch format

    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

      


    TAGS:

    search results | OpenSearch format | Perl module | OpenSearch | search | results

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM