[Maypole] Lucene model class

Simon Cozens simon@simon-cozens.org
Fri, 8 Oct 2004 13:36:43 +0100


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