Skip to content

Instantsearch

dbuthay edited this page Jun 8, 2011 · 5 revisions

Requirements

An INPUT that is

  • Indextank_Autocomplete()'d
  • Indextank_AjaxSearch()'d

How it works

It will run a query through AjaxSearch whenever suggestions appear on the autocomplete box.

Usage

// create a renderer. Instant Results will be rendered here.
var r = $("#results").indextank_Renderer();
$("#query").indextank_Autocomplete().Indextank_AjaxSearch({listeners: r}).indextank_InstantSearch();

Options

  • focusTriggersSearch: A boolean indicating whether to trigger a search when the pointer hovers a suggestion. Default: false
Clone this wiki locally