diff --git a/web/helpers/elastic_search_helper.ex b/lib/code_corps/helpers/elastic_search_helper.ex similarity index 100% rename from web/helpers/elastic_search_helper.ex rename to lib/code_corps/helpers/elastic_search_helper.ex diff --git a/lib/code_corps_web/controllers/skill_controller.ex b/lib/code_corps_web/controllers/skill_controller.ex index a4904c276..d4e23e283 100644 --- a/lib/code_corps_web/controllers/skill_controller.ex +++ b/lib/code_corps_web/controllers/skill_controller.ex @@ -37,7 +37,7 @@ defmodule CodeCorpsWeb.SkillController do @elasticsearch_type "title" @elasticsearch_url Application.get_env(:code_corps, :elasticsearch_url) - def search(_conn, params) do + def search(_conn, %{query: query}) do CodeCorps.ElasticSearchHelper.search(@elasticsearch_url, @elasticsearch_index, @elasticsearch_type, query) end