 
Search Appliance SBE
getCompletions retrieves potential completions for a partially typed
query.  It can be used by a custom client to implement autocomplete as the user
is typing.
Parameters:
profile - Required.  Specifies which profile you're working with.term - Required.  The partially typed term to get completions for.
Output:
Zero or more Completion elements are returned.  Their text content is a
potential completion, and each completion has attributes:
profile - the profile this completion came from.score - the score for this completion.  Completions are ranked
  according to score, which can be derived from occurrences in the content,
  queries, and search user clicks.