Wednesday, 07 January 2009
Solr Custom Sort is a module that we made for the Air Miles Project. By default, Apache Solr doesn't allow you to add sort types. Basically, you can only use those that are standard set in advance. For the Air Miles project, this wasn't what we needed. Therefore, we're now working on the Custom Sort module, a module that allows us to add multiple sort criteria, with the ability to manage them all.
The challenge for us is now to get transparency. Today the module can only be managed by administers but in the future this should be possible for all users.
The solution was simple, we just had to overwrite the class that is implemented by Apache Solr.
'solr_custom_sort', 'Solr_Custom_Query' ));








Thanks for sharing!
Anything new on the Custom Sort module?
Somewhat related, there's also a Facet Builder module for Apache Solr out now.
Thanks
This is useful, but where can I download the module? If it is still available?
Yes, it's still
Yes, it's still available.
You can download it here: http://drupal.org/node/682634.
Thanks a lot
Thanks a lot, but I'm getting the following error after install :
Fatal error: Class ApacheSolr_Custom_Query contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (Drupal_Solr_Query_Interface::get_keys, Drupal_Solr_Query_Interface::set_keys, Drupal_Solr_Query_Interface::remove_keys) in sites/all/modules/apachesolr_custom_sort/ApacheSolr_Custom_Query.php on line 452
Do you have any idea on what the problem could be?
Thanks again
Manuel
Post new comment