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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

N20’s picture

Issue summary: View changes

Mh, wonder why this patch was ignored. Been looking for a setting like that.

zakaria.elhariri’s picture

Unable to patch apachesolr_autocomplete with apachesolr_autocomplete_autosubmit.patch.

I cant apply this patch with the current version of apachesolr_autocomplete