Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you use apache_solr, you might also use apachesolr autocomplete
http://drupal.org/project/apachesolr_autocomplete
But custom_search blocks do not show the autocomplete.
This patch fixes that.
Comment | File | Size | Author |
---|---|---|---|
#6 | custom_search.git-52fec3c.patch | 1.32 KB | jdanthinne |
apachesolr_autocomplete_support.patch | 1.12 KB | askibinski |
Comments
Comment #1
jdanthinne CreditAttribution: jdanthinne commentedThe patch only applies the behaviour for the custom search blocks, and not the default theme/core search.
Is it what you intended to do, dear neighbour?
Comment #2
askibinski CreditAttribution: askibinski commentedyes, the default core search already works with apachesolr_autocomplete.
Comment #3
jdanthinne CreditAttribution: jdanthinne commentedOk, committed to DEV.
Thanks.
Comment #5
fourmi4x CreditAttribution: fourmi4x commentedI can't get this to work, I just have an input box without autocomplete in my custom search blocks.
However, in my default "Search form" block, I get 2 input boxes... ?!
- one with autocomplete => doesn't work : redirects to empty solr search
- one without autocomplete, preceded by "Containing any of the words: " => works fine
Is it normal to have 2 input boxes ?
Is there some special configuration to do to have the autocomplete in custom search block ?
NB :
- I'm using the latest dev of Apache Solr Search Integration, Apache Solr Autocomplete and Custom search
- I tested this both with"Drupal core autocomplete widget" and "Custom autocomplete widget" in Solr settings
Comment #6
jdanthinne CreditAttribution: jdanthinne commentedPlease try and this patch (or DEV version from tomorrow).
It enables the autocomplete function for the custom blocks.
But I don't have 2 input boxes in the default search block!
Comment #7
fourmi4x CreditAttribution: fourmi4x commentedThank you jdanthinne, the patch works perfectly!
(I still have my 2 input boxes in the default search block (weird!), but it's not a problem I will use custom blocks instead)
Comment #8
jdanthinne CreditAttribution: jdanthinne commented