You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by se...@butterflycluster.com on 2010/05/29 14:53:14 UTC
facet order
Hi,
how can i configuratively order facets according to total count of facet
fields?
for example - facets with the highest count be on top.
facet1 [0]
abc (20)
def (18)
ghi (16)
facet2 [1]
jkl (10)
mno (9)
pqr (2)
thanks
dev.
Re: facet order
Posted by Chris Hostetter <ho...@fucit.org>.
: i am using multiple facet fields. so i want to have the field with the
: most items first.
the facet fields are returned i nthe order they were requested in the
params -- reordering them in the client is trivial, so setting up special
commands to re-order them on the server side isn't something that has ever
been (or is likely to ever be) added.
FWIW...
: >> how can i configuratively order facets according to total count of facet
: >> fields?
...if you truely want them ordered by the *total* count (and not just the
sum of returend counts -- ie: if you want to include the long tail beyond
what's left out because of facet.limit and facet.mincount) then just add a
facet.query=field1:[*+TO+*] to get the total count of documents with a
value for that field.
-Hoss
Re: facet order
Posted by se...@butterflycluster.com.
oh yes thats correct, but that orders the items inside a facet.
i am using multiple facet fields. so i want to have the field with the
most items first.
thanks.
> use: facet.sort=true
>
>
> http://wiki.apache.org/solr/SimpleFacetParameters#facet.sort
>
>
> On Sat, May 29, 2010 at 3:53 PM, <se...@butterflycluster.com> wrote:
>
>> Hi,
>>
>> how can i configuratively order facets according to total count of facet
>> fields?
>>
>> for example - facets with the highest count be on top.
>>
>> facet1 [0]
>> abc (20)
>> def (18)
>> ghi (16)
>>
>> facet2 [1]
>> jkl (10)
>> mno (9)
>> pqr (2)
>>
>> thanks
>>
>> dev.
>>
>>
>
>
> --
> Furkan Kuru
>
Re: facet order
Posted by Furkan Kuru <fu...@gmail.com>.
use: facet.sort=true
http://wiki.apache.org/solr/SimpleFacetParameters#facet.sort
On Sat, May 29, 2010 at 3:53 PM, <se...@butterflycluster.com> wrote:
> Hi,
>
> how can i configuratively order facets according to total count of facet
> fields?
>
> for example - facets with the highest count be on top.
>
> facet1 [0]
> abc (20)
> def (18)
> ghi (16)
>
> facet2 [1]
> jkl (10)
> mno (9)
> pqr (2)
>
> thanks
>
> dev.
>
>
--
Furkan Kuru