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 Ryan McKinley <ry...@gmail.com> on 2007/05/11 18:23:02 UTC
Alphabetical Facets
Has anyone given any thought to alphabetical faceting?
I'd like to be able to display facets sorted alphabetically rather then
by count or index order. For example, all the subjects for a something
of type=a and in collection=b sorted alphabetically.
Any pointers before I delve into it?
ryan
RE: Alphabetical Facets
Posted by Chris Hostetter <ho...@fucit.org>.
: Would it be difficult to add support for other unicode collations, for
: i18n purposes?
Difficult? ... probably not, but it would require code. :)
The existing "natural order" sorting on the other hand is there because it
was free and easy ... it's the order terms are enumrated in the index.
-Hoss
Re: Alphabetical Facets
Posted by Yonik Seeley <yo...@apache.org>.
On 5/11/07, Binkley, Peter <Pe...@ualberta.ca> wrote:
> Would it be difficult to add support for other unicode collations, for
> i18n purposes?
It would require collecting *all* of the facet terms/counts, which is
potentially very large, and then re-sorting. Definitely much more
expensive to do.
-Yonik
RE: Alphabetical Facets
Posted by "Binkley, Peter" <Pe...@ualberta.ca>.
Would it be difficult to add support for other unicode collations, for
i18n purposes?
peter
-----Original Message-----
From: Ryan McKinley [mailto:ryantxu@gmail.com]
Sent: Friday, May 11, 2007 11:38 AM
To: solr-user@lucene.apache.org
Subject: Re: Alphabetical Facets
Chris Hostetter wrote:
> : Has anyone given any thought to alphabetical faceting?
>
> if by alphabetical you mean the natural unicode ordering of terms for
> facet.field type facets -- that's already supported.
>
> It's the default sort if there is no facet limit (ie: facet.limit=-1)
> but even with a limit it can be explicitly turned on with
> facet.sort=false
>
> http://wiki.apache.org/solr/SimpleFacetParameters#head-569f93fb24ec41b
> 061e37c702203c99d8853d5f1
> http://localhost:8983/solr/select/?q=*%3A*&facet=true&facet.field=cat&
> rows=0&facet.limit=5&facet.sort=false
>
perfect!
I read that, but did not realize "natural index order" is alphabetical
in the ascii range.
thanks
ryan
Re: Alphabetical Facets
Posted by cricdigs <cr...@gmail.com>.
Will there be a way to do reverse alphabetical ordering in addition to
alphabetical? a->z and z->a ?
Thanks in advance.
ryantxu wrote:
>
> Chris Hostetter wrote:
>> : Has anyone given any thought to alphabetical faceting?
>>
>> if by alphabetical you mean the natural unicode ordering of terms for
>> facet.field type facets -- that's already supported.
>>
>> It's the default sort if there is no facet limit (ie: facet.limit=-1)
>> but
>> even with a limit it can be explicitly turned on with facet.sort=false
>>
>> http://wiki.apache.org/solr/SimpleFacetParameters#head-569f93fb24ec41b061e37c702203c99d8853d5f1
>> http://localhost:8983/solr/select/?q=*%3A*&facet=true&facet.field=cat&rows=0&facet.limit=5&facet.sort=false
>>
>
> perfect!
>
> I read that, but did not realize "natural index order" is alphabetical
> in the ascii range.
>
> thanks
> ryan
>
>
--
View this message in context: http://www.nabble.com/Alphabetical-Facets-tf3728353.html#a13533000
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Alphabetical Facets
Posted by Ryan McKinley <ry...@gmail.com>.
Chris Hostetter wrote:
> : Has anyone given any thought to alphabetical faceting?
>
> if by alphabetical you mean the natural unicode ordering of terms for
> facet.field type facets -- that's already supported.
>
> It's the default sort if there is no facet limit (ie: facet.limit=-1) but
> even with a limit it can be explicitly turned on with facet.sort=false
>
> http://wiki.apache.org/solr/SimpleFacetParameters#head-569f93fb24ec41b061e37c702203c99d8853d5f1
> http://localhost:8983/solr/select/?q=*%3A*&facet=true&facet.field=cat&rows=0&facet.limit=5&facet.sort=false
>
perfect!
I read that, but did not realize "natural index order" is alphabetical
in the ascii range.
thanks
ryan
Re: Alphabetical Facets
Posted by Chris Hostetter <ho...@fucit.org>.
: Has anyone given any thought to alphabetical faceting?
if by alphabetical you mean the natural unicode ordering of terms for
facet.field type facets -- that's already supported.
It's the default sort if there is no facet limit (ie: facet.limit=-1) but
even with a limit it can be explicitly turned on with facet.sort=false
http://wiki.apache.org/solr/SimpleFacetParameters#head-569f93fb24ec41b061e37c702203c99d8853d5f1
http://localhost:8983/solr/select/?q=*%3A*&facet=true&facet.field=cat&rows=0&facet.limit=5&facet.sort=false
-Hoss