[Xapian-discuss] Unique Term Listings
Olly Betts
olly at survex.com
Tue Nov 14 05:39:17 GMT 2006
On Tue, Nov 07, 2006 at 08:25:42PM +0000, Martin Hearn wrote:
> Many thanks for your assistance. The only trouble with the way you
> suggest is that you have to know what terms to search for.
> If I wanted to group all my results by date tag, I'd have to run the
> OP_FILTER 365 times for a year, which is not efficient.
Yes, that wouldn't work so well.
What are you actually trying to achieve here? If you want some sort of
dynamic grouping of results, you could use query expansion (put the
first N matching documents in a Xapian::RSet, and call
Enquire::get_eset() with an ExpandDecider which picks suitably prefixed
boolean terms).
Cheers,
Olly
More information about the Xapian-discuss
mailing list