Apache Solr Autocomplete

janusman - August 27, 2009 - 22:00
apachesolr_autocomplete_screenshot.jpg

Add-on module to Apache Solr Search Integration that adds simple autocomplete functionality. It enforces node access, meaning that all suggestions are only from nodes that the user actually has access to.

Requirements

Requires Apache Solr Search Integration versions:

  • Apache Solr 6.x-1.x branch: RC1 or newer
  • Apache Solr 6.x-2.x branch: current DEV version

If you have a stopwords.txt file in your Solr configuration directory, it will use that to avoid suggesting those words. (Only tested with Jetty in current Solr distribution)

Installation

Install and enable module. All search boxes that lead to an Apache Solr search will automatically be autocomplete-enabled.

If you have any node access modules in place like Workflow Access, Book Access, etc. make sure you have enabled the Apache Solr Node Access module (included with the Apache Solr module).

Todo

  • The algorithm for suggestions isn't really user-tested. It's rather useless to, say, suggest too-frequent terms that are in all your nodes.
  • It would be nice to have some way to track usage of these suggestions.

Want a feature? Have a suggestion? Please file an issue.

Notes

The current version has been tested in a production environment and seems stable enough; however PLEASE be careful: DEV modules should only be used in production environments if you know what you're doing.

Thanks to @robertDouglass helping out with the code.

Downloads

Development releases

Version Downloads Date Links
6.x-1.x-dev Download (9.1 KB) 2009-Aug-28 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.