http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html
カスタムストップワードを使用したインデックス作成中に標準アナライザーを使用する必要があります。
マッピングはどのように定義できますか?
http://www.elasticsearch.org/guide/reference/index-modules/analysis/standard-analyzer.html
カスタムストップワードを使用したインデックス作成中に標準アナライザーを使用する必要があります。
マッピングはどのように定義できますか?
次のコマンドは、ストップワードのカスタム セットを含む標準アナライザーを index の既定のアナライザーとして設定しますtestidx。
curl -XPUT http://localhost:9200/testidx/ -d '{
  "settings":{ 
    "analysis":{
      "analyzer":{
        "default":{
          "type":"standard",
          "stopwords":["foo", "bar", "baz"]
        }
      }
    }
  }
}'
または、インデックス作成のみにカスタム ストップワードを使用する場合は、次のようにします。
curl -XPUT http://localhost:9200/testidx/ -d '{
  "settings":{ 
    "analysis":{
      "analyzer":{
        "default_index":{
          "type":"standard",
          "stopwords":["foo", "bar", "baz"]
        }
      }
    }
  }
}'