Grokbase Groups Lucene dev March 2011
FAQ
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


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

Search Discussions

  • Hoss Man (JIRA) at Mar 17, 2011 at 6:20 pm
    [ https://issues.apache.org/jira/browse/SOLR-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008049#comment-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
  • Bill Bell at Mar 18, 2011 at 5:40 am
    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)" 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
  • Bill Bell (JIRA) at Jun 13, 2011 at 4:04 am
    [ https://issues.apache.org/jira/browse/SOLR-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Bill Bell closed SOLR-2431.
    ---------------------------

    Resolution: Won't Fix
    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedMar 17, '11 at 6:22a
activeJun 13, '11 at 4:04a
posts4
users2
websitelucene.apache.org

2 users in discussion

Bill Bell (JIRA): 3 posts Bill Bell: 1 post

People

Translate

site design / logo © 2017 Grokbase