Edge n-gram token filter : why "side" parameter is Deprecated?

Hi,

I read in documentation, that for Edge n-gram token filter the side parameter is Deprecated. Why ? What is the equivalent then ?

Thanks.

Hi @fraf .

If u want to use "back" u should use filter reverse before edge_ngram

Instead of using the back value, you can use the reverse token filter before and after the edge_ngram filter to achieve the same results.

GET _analyze
{
  "tokenizer": "standard",
  "filter": [
    "reverse",
    {
      "type": "edge_ngram",
      "min_gram": 1,
      "max_gram": 2
    }
  ],
  "text": "quick fox"
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.