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 indextagIndex to search (module:tag)
STRING searchtextThe text to get suggestions for
RECORD optionsOptions
countmaximum number of suggestions to return (0 for all matches, defaults to 10)
STRING ARRAY exclude_urlsFor site searches: Results with a URL starting with one of these exclude_urls are not returned
STRING restrict_urlFor site searches: Only results with a URL starting with this restrict_url are returned
Return value
RECORD ARRAYList of suggestions
STRING textThe suggestion text