Back to Elasticsearch

Reimplementing and extending the `smartcn` analyzer [_reimplementing_and_extending_the_analyzers]

docs/reference/elasticsearch-plugins/_reimplementing_and_extending_the_analyzers.md

9.4.0506 B
Original Source

Reimplementing and extending the smartcn analyzer [_reimplementing_and_extending_the_analyzers]

The smartcn analyzer could be reimplemented as a custom analyzer that can then be extended and configured as follows:

console
PUT smartcn_example
{
  "settings": {
    "analysis": {
      "analyzer": {
        "rebuilt_smartcn": {
          "tokenizer":  "smartcn_tokenizer",
          "filter": [
            "porter_stem",
            "smartcn_stop"
          ]
        }
      }
    }
  }
}