search for: get_matching_terms_begin

Displaying 5 results from an estimated 5 matches for "get_matching_terms_begin".

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;...
2007 Apr 03
3
More weirdness with PHP bindings
...ow). ...[he then manages to 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()...
2011 Mar 24
1
Search result hits and locations
Hey Guys, Just making some enquieres for a project i'm goign to be starting using xapian. When searching over a indexed document will i be able to get a list of hits, how many hits and the location fo the hits. I will have boolean searches like eg ("Mysql" AND ("Linux" OR "Windows")) On each hit i will be wanting teh location of the word found and how many
2013 Aug 21
2
Perl interface isn't working in 1.2.x
...rt,$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 happening is a seg fault at the "push" because $foo...
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.