[Xapian-discuss] How do I get the document ID while scanning through $enquire->matches() (in perl)?

Olly Betts olly at survex.com
Mon Feb 12 16:29:50 GMT 2007


On Mon, Feb 12, 2007 at 03:58:01PM +0000, James Aylett wrote:
> On Mon, Feb 12, 2007 at 03:28:42PM +0000, Richard Boulton wrote:
> 
> > Use operator* to get the docid: from enquire.h:
> > 
> >         /// Get the document ID for the current position.
> >         Xapian::docid operator*() const;
> 
> In Perl? :)

It's wrapped as a get_docid() method of MSetIterator there.  Similarly
for the SWIG generated bindings.

Cheers,
    Olly



More information about the Xapian-discuss mailing list