 
   require Tirexs.Query
   require Tirexs.ElasticSearch
+
+  require Logger
 
   @index_name "exblur_video_entreis"
 

defmodule Es.Exblur.VideoEntry do
  import Tirexs.Bulk
  import Tirexs.Search
  import Tirexs.Mapping

    end

  end

  defp to_i(num) when is_integer(num),  do: num
  defp to_i(num) when is_float(num),    do: round(num)
  defp to_i(num) when is_nil(num),      do: 0
  defp to_i(num) do
    case Integer.parse(num) do
      :error -> 0
      {n, _} -> n
    end
  end

end
