Displaying 2 results from an estimated 2 matches for "increase_termpo".
Did you mean:
increase_termpos
2014 Jan 27
4
Perl Search::Xapian
...to use this.
my $doc = Search::Xapian::Document->new();
$tg->set_document($doc);
$tg->index_text($title, 1, 'S');
$tg->index_text($description, 1, 'XD');
# index fields without prefixes for general search.
$tg->index_text($title);
$tg->increase_termpos();
$tg->index_text($description);
# Store all the feilds for display purposes.
# this is a TODO
my $idterm = "Q".$identifier;
$doc->add_boolean_term($idterm);
$db->replace_document($idterm, $doc);
}
close $fh;
----------------snip---------------
(\ /)...
2012 Jun 04
1
Search not finding queries with stop words.
...pian::Stem->new('english');
$doc->set_data($jsonText);
$indexer->set_stemmer($stemmer);
$indexer->set_stopper($stopper);
$indexer->set_document($doc);
$indexer->index_text($docBody);
$indexer->increase_termpos();
$indexer->index_text($subject);
... (other index_text and add_value calls)
$xdb->add_document($doc);
If I look for something like index of elements, I get no results even
though that phrase exists (no, I don't do a phrase search, just those
three words se...