Currently the search is auto-submitted when a suggestion is selected from the dropdown supplied by autocomplete. This is good behaviour in most cases because it saves the user an extra mouse-click. However, if you are doing any customization using a combination of the custom_search/custom_search_block modules and hook_form_alter to add other fields to the search block so the user can type in some text and select a date range or something like that then the auto-submit prevents this.
One solution is to make the auto-submit configurable. I have created a patch which adds a checkbox to enable/disable this behaviour on the apachesol settings - advanced configuration page (admin/config/search/apachesolr/settings).
Comment | File | Size | Author |
---|---|---|---|
apachesolr_autocomplete_autosubmit.patch | 2.8 KB | joel_osc |
Comments
Comment #1
N20 CreditAttribution: N20 commentedMh, wonder why this patch was ignored. Been looking for a setting like that.
Comment #2
zakaria.elhariri CreditAttribution: zakaria.elhariri commentedUnable to patch apachesolr_autocomplete with apachesolr_autocomplete_autosubmit.patch.
I cant apply this patch with the current version of apachesolr_autocomplete