Performs an autocomplete search using the provided query.
The autocomplete result.
The query to search for.