module SwiftypeAppSearch::Client::QuerySuggestion

Public Instance Methods

query_suggestion(engine_name, query, options = {}) click to toggle source

Request Query Suggestions

@param [String] engine_name the unique Engine name @param [String] query the search query to suggest for @options options see the App Search API for supported search options.

@return [Hash] search results

# File lib/swiftype-app-search/client/query_suggestion.rb, line 11
def query_suggestion(engine_name, query, options = {})
  params = Utils.symbolize_keys(options).merge(:query => query)
  request(:post, "engines/#{engine_name}/query_suggestion", params)
end