[Xapian-discuss] Get PositionList from the Mset

zhiguo li zhiguo.li at gmail.com
Wed Nov 12 21:27:14 GMT 2008


Hi,

I am new to this discuss group and I hope my question hasn't been asked
before.

I was trying to do the following: I have an enquiry and a database. After
performing the query I got the MSet. Now I would like to display the
positional information for the query terms in the MSet.

My thinking is that to display the positional information, I need the terms
and the DocIDs.

I used the MSetIterator to get Docids from the MSet, and from the query I
can get the query terms by query.get_terms_begin(). Now I have the query
terms and DocIDs, questions is how to get the positional information?

I guess it would be just a few lines of code. Could somebody help me out
please?

Thanks,

Kevin


More information about the Xapian-discuss mailing list