The Appliance has been configured to deny administration from your location (54.90.92.204). Invoking Query Autocomplete
Logo

Search Appliance


 

Thunderstone Search Appliance Manual

<<Previous: XML Elements in Search ↑Up: Request XML search results Next>>: Invoke the search SOAP

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/search/autocomplete.json? pr=profile&term=term

Where HOSTNAME is the IP/hostname of your Search Appliance, profile is the profile to search, and term is the user's partially typed term.

Autocomplete returns a JSON array in the OpenSearch format (http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions). Getting completions for term=sea would return something like:

["sea",["seattle","sears","search"]]

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:

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

Copyright © Thunderstone Software     Last updated: May 9 2017

<<Previous: XML Elements in Search ↑Up: Request XML search results Next>>: Invoke the search SOAP

Page generated in 0.17 seconds.
2017-12-13 04:26:37 EST