Blacklight Plugin

sortable search results - is this bl-demo project?

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.1
  • Fix Version/s: 2.1
  • Component/s: None
  • Description:
    Hide
    We'd like to be able to sort search results by:
      relevance
      title
      author
      pub date

    and maybe more. This isn't in demo app.
      
    Stanford has this for VuFind. I think it's a matter of passing a sort=fieldname parameter to solr, and having the pulldown box in the view.

    (param would be added to solr_helper methods, field names would be added to solr.yml)
    Show
    We'd like to be able to sort search results by:   relevance   title   author   pub date and maybe more. This isn't in demo app.    Stanford has this for VuFind. I think it's a matter of passing a sort=fieldname parameter to solr, and having the pulldown box in the view. (param would be added to solr_helper methods, field names would be added to solr.yml)

Activity

Hide
Naomi Dushay added a comment - 20/Mar/09 10:58 AM
Stanford has title_sort and author_sort fields in solr specifically set up for this; I believe Bob has done something similar for UVa.
Show
Naomi Dushay added a comment - 20/Mar/09 10:58 AM Stanford has title_sort and author_sort fields in solr specifically set up for this; I believe Bob has done something similar for UVa.
Hide
Naomi Dushay added a comment - 20/Mar/09 12:29 PM
Stanford may get to this in its own implementation, but probably will need to be refactored in a more generalizable way.

solr.yml:
  would need to put which index field, and what label for it in the pulldown box.
Show
Naomi Dushay added a comment - 20/Mar/09 12:29 PM Stanford may get to this in its own implementation, but probably will need to be refactored in a more generalizable way. solr.yml:   would need to put which index field, and what label for it in the pulldown box.
Hide
Jamie Orchard-Hays added a comment - 08/Apr/09 4:15 PM
Getting exceptions:

org.apache.solr.common.SolrException log
SEVERE: java.lang.RuntimeException: there are more terms than documents in field "title_t", but it's impossible to sort on tokenized fields

Looks like we need to create some sortable fields. I'll need some help from someone with more solr fu than me.
Show
Jamie Orchard-Hays added a comment - 08/Apr/09 4:15 PM Getting exceptions: org.apache.solr.common.SolrException log SEVERE: java.lang.RuntimeException: there are more terms than documents in field "title_t", but it's impossible to sort on tokenized fields Looks like we need to create some sortable fields. I'll need some help from someone with more solr fu than me.
Hide
Jamie Orchard-Hays added a comment - 22/Apr/09 4:13 PM
Added some sortable fields (title_sort and format_sort) and added a sort interface via a select element.
Show
Jamie Orchard-Hays added a comment - 22/Apr/09 4:13 PM Added some sortable fields (title_sort and format_sort) and added a sort interface via a select element.

People

Dates

  • Created:
    13/Feb/09 5:04 PM
    Updated:
    22/Apr/09 4:13 PM
    Resolved:
    22/Apr/09 4:13 PM