     ]
   end
 
-  def do_search(word \\ "*", options \\ []) do
+  def do_search(word \\ nil, options \\ []) do
+
+    fields = [:title, :content, :tags, :divas]
 
     # pagination
     page = max(options[:page] |> to_i, 1)

      end
    end

    Logger.debug "#{inspect queries}"
    Tirexs.Query.create_resource(queries)
  end


  # need to agent.
 
  import Tirexs.Bulk
  import Tirexs.Query
  import Tirexs.Search
  import Tirexs.Mapping
  import Tirexs.Index.Settings

  require Tirexs.ElasticSearch

  require Logger
