The input for the getSuggestion API will be the current word that is being typed not the whole search. The output for the getSuggestion API will be only for the