[Xapian-discuss] Position of term in Search::Xapian

Yaroslav Polyakov inetd at ukr.net
Wed Feb 28 13:52:52 GMT 2007


On Tuesday 27 February 2007 13:14, Olly Betts wrote:

Thank you for your reply, now script works as it should.

Just for your information, I got "Segmentation fault", when have tried to use 
get_termpos for term without position.  

But check "$term->positionlist_begin() != $term->positionlist_end()" helps to 
avoid this.


> On Tue, Feb 27, 2007 at 11:14:04AM +0200, Yaroslav Polyakov wrote:
> > What am I doing wrong? All terms of this document have the position
> > (was added with add_posting).
>
> The pod documentation is wrong - you need to call get_termpos() not
> get_position().
>
> I'll correct that.
>
> Cheers,
>     Olly

-- 
With best regards,
Yaroslav Polyakov



More information about the Xapian-discuss mailing list