Return-Path: X-Original-To: apmail-incubator-lucy-user-archive@www.apache.org Delivered-To: apmail-incubator-lucy-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA7E67EA9 for ; Fri, 30 Sep 2011 14:31:46 +0000 (UTC) Received: (qmail 98144 invoked by uid 500); 30 Sep 2011 14:31:46 -0000 Delivered-To: apmail-incubator-lucy-user-archive@incubator.apache.org Received: (qmail 98089 invoked by uid 500); 30 Sep 2011 14:31:46 -0000 Mailing-List: contact lucy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-user@incubator.apache.org Delivered-To: mailing list lucy-user@incubator.apache.org Received: (qmail 98077 invoked by uid 99); 30 Sep 2011 14:31:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 14:31:45 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.16] (HELO qmta01.westchester.pa.mail.comcast.net) (76.96.62.16) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2011 14:31:38 +0000 Received: from omta15.westchester.pa.mail.comcast.net ([76.96.62.87]) by qmta01.westchester.pa.mail.comcast.net with comcast id f0rk1h0031swQuc512XHMv; Fri, 30 Sep 2011 14:31:17 +0000 Received: from pekmac.local ([24.118.4.97]) by omta15.westchester.pa.mail.comcast.net with comcast id f2XF1h00m25bZyo3b2XFfz; Fri, 30 Sep 2011 14:31:16 +0000 Message-ID: <4E85D2B2.50904@peknet.com> Date: Fri, 30 Sep 2011 09:31:14 -0500 From: Peter Karman Reply-To: peter@peknet.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: lucy-user@incubator.apache.org, Swish-e Users Discussion List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [lucy-user] ANNOUNCE: Dezi and Dezi::Client Initial releases of Dezi and Dezi::Client are now on CPAN: https://metacpan.org/module/Dezi https://metacpan.org/module/Dezi::Client Dezi is a search platform built on Swish3, Apache Lucy, Search::OpenSearch and Plack. Dezi provides a RESTful HTTP interface to Lucy indexes. >From the SYNOPSIS: Start the Dezi server, listening on port 5000: % dezi -p 5000 Add a document to the index: % curl http://localhost:5000/index/foo -XPOST \ -d 'barhello world' \ -H 'Content-Type: application/xml' Search the index: % curl 'http://localhost:5000/search?q=bar' Or instead of curl one-liners, use the Dezi::Client: use Dezi::Client; # open a connection my $client = Dezi::Client->new( server => 'http://localhost:5000', ); # add/update a filesystem document to the index $client->index( 'path/to/file.html' ); # add/update an in-memory document to the index $client->index( \$html_doc, uri => 'foo/bar.html' ); # add/update a Dezi::Doc to the index $client->index( $dezi_doc ); # remove a document from the index $client->delete( '/doc/uri/relative/to/index' ); # search the index my $response = $client->search( q => 'foo' ); # iterate over results for my $result (@{ $response->results }) { printf("--\n uri: %s\n title: %s\n score: %s\n", $result->uri, $result->title, $result->score); } # print stats printf(" hits: %d\n", $response->total); printf("search time: %s\n", $response->search_time); printf(" build time: %s\n", $response->build_time); printf(" query: %s\n", $response->query); -- Peter Karman . http://peknet.com/ . peter@peknet.com