Q: How to use Smart Chinese Analysis for Elasticsearch? I have installed Smart Chinese Analysis for Elasticsearch on our ES cluster, but I do not find documentation on how to specify the correct analyzer.  I would except that I need to set a tokenizer and a filter specifying stopwords and stemmer ...
For example in dutch:
"dutch": {
            "type": "custom",
            "tokenizer": "uax_url_email",
            "filter": ["lowercase", "asciifolding", "dutch_stemmer_filter", "dutch_stop_filter"]
          }

with:

"dutch_stemmer_filter": {
            "type": "stemmer",
            "name": "dutch"
          },

          "dutch_stop_filter": {
            "type": "stop",
            "stopwords": ["_dutch_"]
          }

How to configure my analyzer for Chinese ?

A: Try this for a certain index (the analyzer is 'smartcn' and the tokenizer is 'smartcn_tokenizer'):
PUT /test_chinese
{
  "settings": {
    "index": {
      "analysis": {
        "analyzer": {
          "default": {
            "type": "smartcn"
          }
        }
      }
    }
  }
}

GET /test_chinese/_analyze?text='叻出色'

It should output two tokens (test taken from the plugin test classes):
{
   "tokens": [
      {
         "token": "叻",
         "start_offset": 1,
         "end_offset": 2,
         "type": "word",
         "position": 2
      },
      {
         "token": "出色",
         "start_offset": 2,
         "end_offset": 4,
         "type": "word",
         "position": 3
      }
   ]
}

