Current section
5 Versions
Jump to
Current section
5 Versions
Compare versions
4
files changed
+8
additions
-2
deletions
| @@ -108,6 +108,8 @@ To change it you have two choices: | |
| 108 108 | export ES_URI="URI VALUE" |
| 109 109 | ``` |
| 110 110 | |
| 111 | + Then, simply run `source .env` in your shell. |
| 112 | + |
| 111 113 | 2. In your Phoenix repository you can set the value in the file `config/{some_env}` |
| 112 114 | e.g.: in `config/dev.exs` |
| @@ -19,4 +19,4 @@ | |
| 19 19 | {<<"name">>,<<"poison">>}, |
| 20 20 | {<<"optional">>,false}, |
| 21 21 | {<<"requirement">>,<<"~> 2.0">>}]]}. |
| 22 | - {<<"version">>,<<"0.1.1">>}. |
| 22 | + {<<"version">>,<<"0.1.2">>}. |
| @@ -1,4 +1,6 @@ | |
| 1 1 | defmodule Elistix.Query do |
| 2 | + require Logger |
| 3 | + |
| 2 4 | @moduledoc """ |
| 3 5 | This module makes all the operations related to the queries in Elasticsearch. |
| 4 6 | |
| @@ -24,6 +26,8 @@ defmodule Elistix.Query do | |
| 24 26 | }' |
| 25 27 | """ |
| 26 28 | def search(name, type, query) do |
| 29 | + Logger.info "Query" |
| 30 | + Logger.debug query |
| 27 31 | Elistix.request(:get, "/#{name}/#{type}/_search", query) |
| 28 32 | end |
| 29 33 | end |
| @@ -3,7 +3,7 @@ defmodule Elistix.Mixfile do | |
| 3 3 | |
| 4 4 | def project do |
| 5 5 | [app: :elistix, |
| 6 | - version: "0.1.1", |
| 6 | + version: "0.1.2", |
| 7 7 | elixir: "~> 1.3", |
| 8 8 | build_embedded: Mix.env == :prod, |
| 9 9 | start_permanent: Mix.env == :prod, |