Index: solr/project_solr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project/solr/project_solr.module,v
retrieving revision 1.67
diff -u -r1.67 project_solr.module
--- solr/project_solr.module	23 Jul 2010 18:33:19 -0000	1.67
+++ solr/project_solr.module	2 Aug 2010 17:08:58 -0000
@@ -87,6 +87,23 @@
 //----------------------------------------
 
 /**
+ * Implementation of hook_apachesolr_facets().
+ */
+function project_solr_apachesolr_facets() {
+  $facets = array();
+  if (module_exists('project_usage')) {
+    $facets = array(
+      'sort_most_installed' => array(
+        'info' => t('Most installed'),
+        'facet_field' => 'sis_project_release_usage',
+        'direction' => 'desc',
+      ),
+    );
+  }
+  return $facets;
+}
+
+/**
  * Implementation of hook_apachesolr_update_index().
  *
  * This adds information about releases for the project to the Solr document
