     offset = options[:offset] || (page - 1) * per_page
 
     # queries = search [index: @index_name, from: 0, size: 10, fields: [:tag, :article], explain: 5, version: true, min_score: 0.5] do
-    queries = search [index: @index_name, fields: [:title, :content, :tags, :divas], from: offset, size: per_page] do
+    queries = search [index: @index_name, fields: fields, from: offset, size: per_page] do
+
       query do
-        string "title:" <> word
+        match_all
       end
 
       # query do

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

  require Tirexs.Query
  require Tirexs.ElasticSearch

  require Logger

      create search_data(model)
    end
  end

  #### for develop #####
  def put_document(model, tags, divas) do
    Tirexs.Bulk.store [index: @index_name, refresh: true], Tirexs.ElasticSearch.config() do
      create search_data(model, tags, divas)
    end
  end

  def search_data(model, tags, divas) do
    search_data(model) ++ [
      tags: tags,
      divas: divas
    ]
  end
  #########

  def search_data(model) do
    [
