[Xapian-discuss] Unique Term Listings

Martin Hearn martinhearn at mac.com
Tue Nov 14 11:19:35 GMT 2006


Hi Olly

I'm trying to achieve something similar to what ebay does.
E.g. If I search for "harry potter" on ebay I get a list of over 50  
categories with the number of entries for each category.

Because the number of categories is potentially large I don't want to  
have to query each one.
If I understand correctly I would still have to query each category  
with get_eset?

I hope this makes sense. Thanks for your help.

Cheers
Martin


On 14 Nov 2006, at 05:39, Olly Betts wrote:

> 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