Invoking Query Autocomplete

Query Autocomplete can be used in your own custom front end using JavaScript similar to that used by the normal search interface. If you want to invoke it arbitrarily, you can request URLs of the form:

http://HOSTNAME/texis/webinator/search/autocomplete.json? pr=profile&term=term

Where HOSTNAME is the IP/hostname of your Webinator, profile is the profile to search, and term is the user's partially typed term. The URL path for your installation may be different from /texis/webinator/search, use whatever normally appears in your search URLs.

Autocomplete returns a JSON array in the OpenSearch format ( Getting completions for term=sea would return something like:


Autocomplete also supports JSON-P, so adding &callback=updateList to the URL would return:

updateList({term: "sea", completions: ["seattle","sears","search"]})

Alternatively, you can request autocomplete.xml instead of .json to get an XML document back:

  <Completion score="16">seattle</Completion>
  <Completion score="5">sears</Completion>
  <Completion score="1">search</Completion>

Copyright © Thunderstone Software     Last updated: Oct 5 2023
Copyright © 2023 Thunderstone Software LLC. All rights reserved.