Live Search

Component ID

11043

Component name

Live Search

Component type

module

Component security advisory coverage

not-covered

Downloads

2735

Component created

Component changed

Component body

Live Search aims to provide Drupal's search module a live search functionality through Ajax and to degrade gracefully to a normal search box when the user has JavaScript turned off. It has the following features:

  • Choice between theme-provided or module-provided search box. Live Search builds upon an existing search box. Most themes provide their own search box, and the search module itself also provides a search block. You can choose which search box to enable live search functionality on.
  • Compact search box. This enables the search box to behave in a more Apple style, such as the lack of the "Search" button, with the "Search" phrase embedded in the text field itself.
  • Ajax request firing delay. To save bandwith and ease server loads, an Ajax search request is fired, by default, after the user stops typing the keyword for 1250 milliseconds.
  • Snippet and node info hiding. To save screen real estate, you can opt to hide the snippets (excerpts), the node info (showing various information such as node type, author, and date), or both.

Live Search fully utilizes Drupal's built-in jQuery JavaScript library.

Note:

  • Live Search itself does not do any searching. It depends on the built-in Search module to do it. Any issues or concern regarding search keyword, search syntax, or search results styling / theming belong to Search, not Live Search.
  • Without some customization on theming, Live Search may break your page layout if your search box is not placed on a sidebar unless you specify a custom element for search results. For example, Garland will not break but Bluemarine probably will.