[Xapian-discuss] xapian query group result by domain?

Felix Antonius Wilhelm Ostmann ostmann at websuche.de
Mon Jan 15 08:59:20 GMT 2007


Olly Betts schrieb:
> On Sat, Jan 13, 2007 at 06:08:04PM +0800, Andrey Kong wrote:
>   
>> Is it possible to group the result by domain just like google's [ More 
>> results from www.abc.com ],
>> when there are more than 1 results from the same domain?
>>     
>
> Put the domain name in a value and use
> Xapian::Enquire::set_collapse_key() to collapse matches with the same
> domain:
>   
i found out that this is very slow :( i need this feature too, but my 
way is over the match_decider ... the only problem: i use Perlbindings 
and never create an XS-Modul :( This would be tricky :(


> http://www.xapian.org/docs/apidoc/html/classXapian_1_1Enquire.html#b5ef9cc615f7dd8414175c7529ee4e0c
>
> You can then use Xapian::MSetIterator::get_collapse_count() to decide
> when to add the "More results from X" link:
>
> http://www.xapian.org/docs/apidoc/html/classXapian_1_1MSetIterator.html#4d2d8fae854bc997dd417234061a3fe2
>
> Cheers,
>     Olly
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>
>
>   


-- 
Mit freundlichen Grüßen

Felix Antonius Wilhelm Ostmann
--------------------------------------------------
Websuche   Search   Technology   GmbH   &   Co. KG
Martinistraße 3  -  D-49080  Osnabrück  -  Germany
Tel.:   +49 541 40666-0 - Fax:    +49 541 40666-22
Email: info at websuche.de - Website: www.websuche.de
--------------------------------------------------
AG Osnabrück - HRA 200252 - Ust-Ident: DE814737310
Komplementärin:     Websuche   Search   Technology
Verwaltungs GmbH   -  AG Osnabrück  -   HRB 200359
Geschäftsführer:  Diplom Kaufmann Martin Steinkamp
--------------------------------------------------




More information about the Xapian-discuss mailing list