Archives: May 2011

Search::OpenSearch::Server with REST API

Just uploaded several modules to CPAN that together implement a full REST API for KinoSearch indexes, using Search::OpenSearch::Server::Plack.

% curl -XPOST http://localhost:5000/foo \ -d ‘<doc><title>bar</title>foo</doc>’ \ -H ‘Content-Type: application/xml’ [response:] { “success”:1, “doc”:{ “orgs”:[], “places”:[], “people”:[], “topics”:[], “summary”:””, “title”:”bar”, “author”:[] }, “total”:”21581″, “code”:”200″ }

The modules are:

  • Search::OpenSearch 0.11
  • Search::OpenSearch::Server 0.05
  • Search::OpenSearch::Engine::KSx 0.08
  • SWISH::Prog::KSx 0.17
  • SWSIH::Prog 0.49