lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Bell <billnb...@gmail.com>
Subject Re: [jira] Commented: (SOLR-2431) Would like to have 2 sorting parameters for Facets - one for order, and one for display
Date Fri, 18 Mar 2011 05:34:50 GMT
Well you never saw how many that need to be sorted :) It is a pretty big
list.

On 3/17/11 12:20 PM, "Hoss Man (JIRA)" <jira@apache.org> wrote:

>
>    [ 
>https://issues.apache.org/jira/browse/SOLR-2431?page=com.atlassian.jira.pl
>ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008049#comm
>ent-13008049 ] 
>
>Hoss Man commented on SOLR-2431:
>--------------------------------
>
>while this wouldn't be hard, it doesn't really seem like there would be
>any real gain.
>
>my general rule of thumb is that solr should focus on doing things server
>side that would be more expensive/impractical to do on the client side.
>
>generating facet constraint counts, and sorting those facet constraints
>are things the client can't do efficiently (without downloading all of
>the docs).  but sorting a fixed list of N items that are all being
>returned to the client is something the client *can* do just as
>efficiently as solr, so we might as well offload the work to them.  (just
>like formatting dates/numbers into a specific timezone/locale, etc...)
>
>> Would like to have 2 sorting parameters for Facets - one for order, and
>>one for display
>> 
>>-------------------------------------------------------------------------
>>--------------
>>
>>                 Key: SOLR-2431
>>                 URL: https://issues.apache.org/jira/browse/SOLR-2431
>>             Project: Solr
>>          Issue Type: New Feature
>>          Components: search
>>    Affects Versions: 4.0
>>            Reporter: Bill Bell
>>            Priority: Minor
>>   Original Estimate: 1h
>>  Remaining Estimate: 1h
>>
>> Since 1.4, facet.sort=index and count exist.
>> I would like to add facet.display=alpha to change the order.
>> Use case:
>> I want to output 10 facet terms from highest to lowest count. i.e.
>>facet.sort=count&facet.limit=10
>> But I want the actual order to be alphabetical. i.e. facet.display=index
>> Otherwise our program needs to get the list, and sort it on the client
>>side.
>
>--
>This message is automatically generated by JIRA.
>For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>For additional commands, e-mail: dev-help@lucene.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message