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:
File under projects/swish Thu May 26 13:56:43 CT 2011
peknet is Peter E Karman
musing on 


syndicate this site