You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autocomplete is quite simple. It will show QUERY suggestions on an INPUT.
When you press enter, or select a suggestions by clicking on it, 2 things will happen:
the INPUT will have the selected value
the FORM will be submitted
AjaxSearch (and InstantSearch) provide a way to submit the FORM via JSONP, so you can have the results rendered on a static page.
fieldName: the name of the field to use when generating the suggestion. It does not mean that when pressing enter the query will run against that field. See AjaxSearchrewriteQuery to change that.
Events
Triggers (to self)
Indextank.Autocomplete.success: when the autocomplete succeeds. Passes suggestions as first parameter.