Displaying 4 results from an estimated 4 matches for "get_matching_terms_end".
2007 Sep 30
1
Perl example of using termitrator?
I'm having trouble translating from C++ to perl objects.
The TermIterator class looks like to get a set of terms in a document
you might have C++ code like:
Enquire::TermIterator termIt =enquire->get_matching_terms_begin(id);
for(;termIt != enquire->get_matching_terms_end(id);termIt++) {
string term = *termIt;
}
Or something similar. However when I attempt to translate that into
perl, I am trying:( I am working in the blind here)
foreach my $match ( @matches ) {
my %hit;
my %ht;
my $doc = $match->get_document();
my $per...
2007 Apr 03
3
More weirdness with PHP bindings
...get Xapian working in a real situation]...
I was surprised it works so well because my script also uses
get_matching_terms, but it doesn't reproduce the bug above.
In fact, I don't use a "join(get_matching_terms())" as smoketest do, but
iterate with get_matching_terms_begin and get_matching_terms_end.
Just by curiosity, I added the following lines in smoketest.php :
$hit=$mset->get_hit(0);
$it=$enq->get_matching_terms_begin($hit);
while (! $it->equals($enq->get_matching_terms_end($hit)))
{
echo $it->get_term(), ' ';...
2013 Aug 21
2
Perl interface isn't working in 1.2.x
...$nstart,$nrecords);
my $mset = $enq->get_mset($nstart,$nrecords);
my $est = $mset->get_matches_estimated();
my $totTime=0;
foreach my $match ( @matches ) {
my $doc = $match->get_document();
my $id = $match->get_docid();
my $eterm = $enq->get_matching_terms_end($id);
my $bterm = $enq->get_matching_terms_begin($id);
my @terms;
for(my $xit=$bterm;$xit != $eterm;++$xit) {
my $foo ="$xit";
$foo =~s/^Z//;
$foo =~s/^A//;
push(@terms,$foo);
}
}
What's h...
2013 Aug 26
2
Perl interface isn't working in 1.2.x
On 08/25/2013 05:02 PM, Olly Betts wrote:
> So the simple fix is
> probably just to install the perl-Search-Xapian RPM instead.
Thanks, the Centos 6 repos don't have that rpm and the
http://xapian.org/download page seems to only cover the XS bindings, if
I am reading this correctly:
But I was able to remove the rpm packages and compile and install the
core and swig from source.