How to control sorting for nodes with missing values in sort field in Apache Solr | Drupal Connect
The other day while hanging out in IRC, I was pinged by katbailey, the Lady of the Lovely Voice (I could listen to her talk for hours) with a question about sorting in Solr when a sort field doesn't contain a value. In particular, how can you control whether nodes without a value in the sort field show up at the beginning or end of the search results? In her particular case, there was a Price field that was being sorted on, but not all nodes had a Price value, and the ones without Price were showing up at the beginning of the list.
Read full article from How to control sorting for nodes with missing values in sort field in Apache Solr | Drupal Connect
No comments:
Post a Comment