lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (SOLR-2431) Would like to have 2 sorting parameters for Facets - one for order, and one for display
Date Thu, 17 Mar 2011 18:20:29 GMT


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:
>             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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message