[Xapian-discuss] Best way of showing what matched the search

Olly Betts olly at survex.com
Wed Aug 20 05:14:04 BST 2008


On Wed, Aug 20, 2008 at 01:04:19AM -0300, Agustín wrote:
> Is there any way to get which terms from that query matched a returned
> document efficiently?

This should be pretty efficient:

Xapian::Enquire::get_matching_terms_begin()

If you're finding that's too slow, a testcase would be useful.

Cheers,
    Olly



More information about the Xapian-discuss mailing list