[Xapian-discuss] refined search
Olly Betts
olly at survex.com
Sat Aug 1 10:16:23 BST 2009
On Fri, Jul 31, 2009 at 03:13:24PM -0700, Marc Fromm wrote:
> Once an initial search displays the results is there a way to do a
> search on just those documents included in the initial search?
If the new query is "new_query" and the old one "old_query", you can
just do:
new_query = Xapian::Query(Xapian::Query::OP_FILTER, new_query, old_query);
The data for old_query will be cached, so this is pretty efficient.
Cheers,
Olly
More information about the Xapian-discuss
mailing list