GetConsilioSuggestions (open)

Get completion suggestions for a text

Syntax

LOADLIB "mod::consilio/lib/api.whlib";

RECORD ARRAY FUNCTION GetConsilioSuggestions(STRING indextag, STRING searchtext, RECORD options)

Parameters

STRING indextag

Index to search (module:tag)

STRING searchtext

The text to get suggestions for

RECORD options

Options

count

maximum number of suggestions to return (0 for all matches, defaults to 10)

STRING ARRAY exclude_urls

For site searches: Results with a URL starting with one of these exclude_urls are not returned

STRING restrict_url

For site searches: Only results with a URL starting with this restrict_url are returned

Return value

RECORD ARRAY

List of suggestions

STRING text

The suggestion text