This is a pretty hefty patch which abstracts out the two searching classes
into a Search::Base class, in preparation for adding a third search engine
backend. (Plucene)
While constructing this I found a particularly confusing thing about the
full text search backend. index_node is called as follows:
$search->index_node($node, $content);
However, DBIxFTS says this:
my ($self, $node) = @_;
(No content?)
my $dbh = $self->{_dbh};
my $fts_all = DBIx::FullTextSearch->open($dbh, "_content_and_title_fts");
my $fts_titles = DBIx::FullTextSearch->open($dbh, "_title_fts");
$fts_all->index_document($node);
$fts_titles->index_document($node);
(No difference between purely-title and content-and-title indexing?)
Where does it get the content from?
--
"There is no statute of limitations on stupidity."
-- Randomly produced by a computer program called Markov3.