[Xapian-discuss] Re: Search::Xapian and term positions

Arne Georg Gleditsch argggh at linpro.no
Mon Jan 24 23:24:29 GMT 2005

* Olly Betts
> On Wed, Jan 19, 2005 at 10:26:00PM +0100, Arne Georg Gleditsch wrote:
>> Firstly, get_matching_terms_begin1 and
>> get_matching_terms_begin2 seem to switched around in Enquire.pm
> Oops, so they are!

(I think the same goes for get_matching_terms_end, in case that wasn't

> However, you can just create one from the database by passing the docid
> and termname explicitly:

That worked, thanks.  The objects returned are a bit un-perlish in
that they seem to cause Perl to segfault if you walk off the end (or
there are no positions to liste), but I got it working by explicitly
comparing to positionlist_end.


More information about the Xapian-discuss mailing list