Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2010 at 23:08 UTC
Updated:
17 Oct 2012 at 07:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
davidwhthomas commentedAttaching a screenshot of admin settings form.
DT
Comment #2
pwolanin commentedSo does this sort of functionality belong in the already-complex admin interface of the main module, or shoudl this code go into the online docs as a reference?
Comment #3
davidwhthomas commentedI'd suggest it fits best as an apachesolr/contrib module.
Users can install if they want configurable default sort functionality.
Sort settings, as part of a search module's configuration, seems intuitive to me so I can't see a problem with keeping it as a tab on the main config page.
Would be interested to hear what other people think too though.
DT
Comment #4
jpmckinney commentedI'm in favor of putting this in apachesolr_search.module. The admin page needs some love, but I wouldn't say it's irrecoverably complex. I'm committing a first part of this, which makes setting a default sort much easier.
http://drupal.org/cvs?commit=359052
Comment #5
jpmckinney commentedSee #590706: Adding 'Default sorting' setting for a preferable way to set the default sort than to add settings to settings/apachesolr/settings.
Comment #6
francewhoaSubscribing
Note to self: Expected similar result #590706: Adding 'Default sorting' setting
Comment #7
davidwhthomas commentedOK, I'll look at creating a patch to put the settings in the sort block edit page, rather than the menu callback.
Comment #8
pwolanin commentedIs the remainder here a "won't fix"?
Comment #9
pwolanin commentedComment #10
halstead commentedWe are using this with a minor fix in hook menu. I'm interested in working on this.
Comment #11
dalin@jpmckinney and @Francewhoa #590706: Adding 'Default sorting' setting will not work if the site does not use the sort block. I think the method that this issue implements is the better way to go.
Comment #12
davidtrainer commentedI have a site that needs this functionality; will install and post results. I do prefer this approach to #590706: Adding 'Default sorting' setting. I did not intuitively expect to find the setting on the block configuration page.
Comment #13
jpmckinney commentedAs a feature request this is wontfix, as default sort can be controlled by implementing hook_apachesolr_prepare_query.
Comment #14
davidwhthomas commentedFair enough, but I presume most Drupal users don't know how to program hook_apachesolr_prepare_query.
DT
Comment #16
davidwhthomas commentedJust a note on this one, if anyone is looking to set default sort order to created date desc in apachesolr D7
You can use this:
HTH,
DT
Comment #17
__cj commentedPlease note the code is #16 will prevent the Relevancy sort from being used.
I've put in a patch to allow you to change the default sort order.
https://drupal.org/node/2154583
Chris.