8 - Using the Suggestion query

Build 1501 on 14/Nov/2017  This topic last edited on: 30/Jan/2013, at 13:32

This example illustrates how to use the SuggestionQuery feature.

Suppose you executed this query:

http://localhost/tark4/do.ashx?cmd=search&name=folderObjects&from=0&count=10&pars=param:ketch

The results would contain this node:

<Suggestion query="(catch)" display="catch" />

Because the search engine suspects that you spelled the search term incorrectly.

To execute the search recommended by the search engine, use this syntax:

http://localhost/tark4/do.ashx?cmd=search&name=folderObjects&from=0&count=10&pars=param:ketch&suggestionquery=(catch)See also

Search call