Movatterモバイル変換


[0]ホーム

URL:


Loading
  1. Elastic Docs/
  2. Reference/
  3. Elasticsearch/
  4. Text analysis components/
  5. Token filter reference

Classic token filter

Performs optional post-processing of terms generated by theclassic tokenizer.

This filter removes the english possessive ('s) from the end of words and removes dots from acronyms. It uses Lucene’sClassicFilter.

The followinganalyze API request demonstrates how the classic token filter works.

GET /_analyze{  "tokenizer" : "classic",  "filter" : ["classic"],  "text" : "The 2 Q.U.I.C.K. Brown-Foxes jumped over the lazy dog's bone."}

The filter produces the following tokens:

[ The, 2, QUICK, Brown, Foxes, jumped, over, the, lazy, dog, bone ]

The followingcreate index API request uses the classic token filter to configure a newcustom analyzer.

PUT /classic_example{  "settings": {    "analysis": {      "analyzer": {        "classic_analyzer": {          "tokenizer": "classic",          "filter": [ "classic" ]        }      }    }  }}

[8]ページ先頭

©2009-2026 Movatter.jp