Re: [Maypole] Lucene model class

From: Simon Cozens (simon at simon-cozens.org)
Date: Fri Oct 08 2004 - 13:36:43 BST


Brian Glass:
> Does anyone know of a Maypole model class for Lucene? Are there any
> plans to write one?

I don't think that makes much sense, since Lucene generally gives you a
pointer into some other model, such as an ID to form the primary key in a
database row. Take a look, for instance, at Email::Store::Plucene leading to
the following magic in Buscador:

sub search :Exported {
    my ($self, $r) = @_;
    $r->objects([ $self->plucene_search( $r->{query}{terms} ) ]);
}

-- 
"I will make no bargains with terrorist hardware."
-- Peter da Silva

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT