According to this, search results are ordered by relevance score. How can I override this? I want our results sorted by created date. I'm not talking about allowing users to sort by different fields, just the default order of results returned by apache solr.
This requires a custom modules where you implement a hook provided by apachesolr. There are several options but
hook_apachesolr_modify_query(&$query, &$params, $caller) works as well as any.
You can modify the
Or you can modify the
$params['sort'] = "$field_name $direction";