[Xapian-discuss] Search result hits and locations

Olly Betts olly at survex.com
Sun Mar 27 13:10:38 BST 2011


On Thu, Mar 24, 2011 at 05:38:39PM +1100, Brenton Bull wrote:
> I will have boolean searches like eg ("Mysql" AND ("Linux" OR "Windows"))
>
> On each hit i will be wanting teh location of the word found and how  
> many times that word was found.

You can get this information using the Xapian::TermIterator returned by
Xapian::Enquire::get_matching_terms_begin().

Cheers,
    Olly



More information about the Xapian-discuss mailing list