| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | Search API autocomplete-----------------------Adds autocomplete capabilities for Search API searches.Information for users---------------------- Necessary server featureThe server on which the search will be executed has to support the"search_api_autocomplete" feature in order for autocompletion to work. Searcheson other servers won't be affected by this module.Currently, only the Solr service class [1] is known to support this feature.[1] http://drupal.org/project/search_api_solr- Necessary setupAfter having installed and enabled the module, you have to do someadministrative steps to activate the autocomplete functionality. Autocompletioncan be enabled and configured for each search separately.To activate autocompletion for an index's searches, go to the index's„Autocomplete“ tab. There, you see all available searches for the index and canenable (and afterwards configure) autocompletion for each of them. All fulltextkey fields on the searches should then become autocompletion fields.- Supported searchesCurrently, only search forms built by search pages or search views aresupported directly. However, other modules can easily also use thisfunctionality. See the "Information for developers" for details.Information for developers--------------------------- Supporting autocompletion with a service classTo support autocompletion with a service class, the class has to support the"search_api_autocomplete" feature. This will necessitate the service class tohave a getAutocompleteSuggestions() method as detailed in the interface insearch_api_autocomplete.interface.php.- Supporting autocompletion on a search formIf you have a search form not generated by the Search views or Search pagesmodules, you can use hook_search_api_autocomplete_types() to tell this moduleabout it. For details, see the hook documentation in thesearch_api_autocomplete.api.php file, or look at the existing implementationsin search_api_autocomplete.search_api_page.inc andsearch_api_autocomplete.search_api_views.inc.
 |