module Datarank class Client # Module containing methods raw search module Search # Return comments based on an elastic search json compliant query # # @param search_object [String] A JSON object compliant with Elastic Search query format # @param slug [String] A topic's unique identifier slug def search(topic_slug, search_object) post "/topics/#{topic_slug}/search", search_object end end end end