Displaying 2 results from an estimated 2 matches for "xdatabase".
Did you mean:
database
2013 Feb 21
1
Parsing fields with phrases.
I have the following code:
my $par =
$qp->parse_query($query,Search::Xapian::FLAG_SPELLING_CORRECTION);
print LOG "Query $query, par $par\n";
my $enq = $xDatabase->enquire( $par );
The output from the LOG file is:
Query title:"new dolphin", par Xapian::Query(0 * Snew dolphin)
No results are returned. If I change the search to title:dolphin it
finds a number of hits including one who's title is
Introducing the New Dolphin
<http://loca...
2012 Jun 04
1
Search not finding queries with stop words.
...that looks a bit like:
my $qp = new Search::Xapian::QueryParser();
$qp->set_stemmer(new Search::Xapian::Stem("english"));
$qp->set_stemming_strategy(STEM_SOME);
$qp->set_default_op($defaultop);
...
my $par = $qp->parse_query($query);
my $enq = $xDatabase->enquire( $par );
and in the db create script:
my $stopper = Search::Xapian::SimpleStopper->new();
foreach my $word (@ar) {
$stopper->add($word);
}
...
my $doc = Search::Xapian::Document->new();
my $indexer = Search::Xapian::TermGenerator->new();...