   end
 
   def search_data(model) do
+    {:ok, published_at} =
+      model.published_at
+      |> Timex.Ecto.DateTime.cast
+
     [
       _id: model.id,
       url: model.url,

        # indexes "content",        type: "string", analyzer: "ja_analyzer"

        indexes "time",           type: "long"
        indexes "published_at",   type: "date" #  ,   format: "strict_date_optional_time"

        indexes "review",         type: "boolean"
        indexes "publish",        type: "boolean"


      sort do
        [
          [published_at: [order: "desc"]]
        ]
      end

