   * `query`    - Query in json
   """
   def register(index_id, token, uuid, query) do
-    do_register(index_id, token, uuid, query)
+    id = "#{token}-#{uuid}"
+    percolation = put("/_percolator/#{index_id}_#{Mix.env}/#{id}", query)
+    {:ok, body} = JSEX.decode(percolation.body)
+    {:ok, response} = JSEX.encode([query_id: uuid, index_id: index_id, body: body])
+    {percolation.status_code, response}
   end
 
   @doc """

  * `query`    - Query in json
  """
  def register(index_id, token, query) do
    do_register(index_id, token, Funnel.Uuid.generate, query)
  end

  @doc """

    {del.status_code, del.body}
  end

  def namespace do
    "funnel_#{Mix.env}"
  end
