Skip to content

Create analyzer

curl -s "localhost:9200/movies/_analyze" \
  --request POST \
  --header "Content-Type: application/json" \
  --data @analyze.json \
| jq .
{
  "tokenizer": "standard",
  "filter": [
    {
      "type": "edge_ngram",
      "min_gram": 1,
      "max_gram": 4
    }
  ],
  "text": "Star"
}