typeahead(+Type, +Query, -Match, +Options:dict) is nondet[multifile, swish(lib/search)]
Find typeahead suggestions for a specific search category (Type). This oredicate is a multifile predicate, which allows for adding new search targets. The default implementation offers:
predicates
Searches for built-in and configured library predicates
sources
Searches all loaded source files.
To be done
- : Limit number of hits?
 swish_search:typeahead(+Set, +Query, -Match, +Options) is nondet[multifile, swish(lib/storage)]
Find files using typeahead from the SWISH search box. This version defines the following sets:
To be done
- caching?
- We should only demand public on public servers.
 swish_search:typeahead(+Set, +Query, -Result, +Options) is nondet[multifile, swish(lib/plugin/es_swish)]
Search for typeahead of the top-right search box.
 swish_search:typeahead(+Set, +Query, -Match, +Options) is nondet[multifile, swish(lib/plugin/profile)]
Find users based on their profile. This handler defines the set user. A Match is a dict holding:
id:ProfileID
label:Name
A reasonable name for the user
email:Email
Only present if the match was found on the email.
hit:hit{key:Key, value:Value}
Field key and value on which the hit was found
avatar:Avatar
Avatar URL