[Xapian-devel] How to locate the query term in search results?

Shen Li te_quira at hotmail.com
Tue Apr 19 18:00:55 BST 2011

Hi everyone,

I'm trying to build a summary of each document within the search results, and the summary is supposed to be the sentence where the queried term appears in the document. However, I'm not sure about where to start. I mean, should I call the class of XapianDocument and search through the termlist of each document in the Mset or it'll be better if I begin with the positionlist of the term to get it located in each document?

Any suggestion and clues are welcome! Much thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20110420/0dd287b1/attachment.htm>

More information about the Xapian-devel mailing list