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 Jamie Johnson <je...@gmail.com> on 2011/12/28 21:50:27 UTC

Facet Ordering

I've seen in the solr faceting overview that it is possible to sort
either by count or lexicographically, but is there a way to sort so
the lowest counts come back first?

Re: Facet Ordering

Posted by Jamie Johnson <je...@gmail.com>.
I have a database where a user is searching for documents, and the
things which I'm faceting on are tags.  Tags boil down to things of
interest, perhaps names, places, etc.  The user in our case has asked
for the ability to change the ordering so they can easily find things
that appear very infrequently, perhaps there is some nugget in that
data which they'd not have seen before.

The real problem I have with the use case though is there is no real
way to know if the nugget is in the first 50 results, the last 50
results or somewhere in between.

On Wed, Dec 28, 2011 at 8:52 PM, Koji Sekiguchi <ko...@r.email.ne.jp> wrote:
> (11/12/29 5:50), Jamie Johnson wrote:
>>
>> I've seen in the solr faceting overview that it is possible to sort
>> either by count or lexicographically, but is there a way to sort so
>> the lowest counts come back first?
>>
>
> As far as I know, no. What is your use case?
>
> koji
> --
> http://www.rondhuit.com/en/

Re: Facet Ordering

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
(11/12/29 5:50), Jamie Johnson wrote:
> I've seen in the solr faceting overview that it is possible to sort
> either by count or lexicographically, but is there a way to sort so
> the lowest counts come back first?
>

As far as I know, no. What is your use case?

koji
-- 
http://www.rondhuit.com/en/

Re: Facet Ordering

Posted by Jamie Johnson <je...@gmail.com>.
Thanks Hoss, I'll take a look at this and see if i can understand this.

On Wed, Dec 28, 2011 at 9:44 PM, Chris Hostetter
<ho...@fucit.org> wrote:
>
> : I've seen in the solr faceting overview that it is possible to sort
> : either by count or lexicographically, but is there a way to sort so
> : the lowest counts come back first?
>
> Peter Sturge looked into this a while back and provided a patch, but there
> were some issues with it that never got resolved (in particular, it didnt'
> work for several of hte faceting code paths).  If you are interested in
> helping to add this functinality, resurecting that patch might be a good
> palce to start...
>
> https://issues.apache.org/jira/browse/SOLR-1672
>
> -Hoss

Re: Facet Ordering

Posted by Chris Hostetter <ho...@fucit.org>.
: I've seen in the solr faceting overview that it is possible to sort
: either by count or lexicographically, but is there a way to sort so
: the lowest counts come back first?

Peter Sturge looked into this a while back and provided a patch, but there 
were some issues with it that never got resolved (in particular, it didnt' 
work for several of hte faceting code paths).  If you are interested in 
helping to add this functinality, resurecting that patch might be a good 
palce to start...

https://issues.apache.org/jira/browse/SOLR-1672

-Hoss