I have researched the methods to refine a search, such as using ADJ and NEAR. Once an initial search displays the results is there a way to do a search on just those documents included in the initial search? Thanks Marc
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