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

**URL:** <https://discuss.elastic.co/t/edge-n-gram-token-filter-why-side-parameter-is-deprecated/307519>\
**Category:** Elasticsearch\
**Created:** [June 17, 2022, 2:03pm UTC](https://discuss.elastic.co/t/edge-n-gram-token-filter-why-side-parameter-is-deprecated/307519 "2022-06-17T14:03:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fraf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fraf/32/107072_2.png) [@fraf](https://discuss.elastic.co/u/fraf)\
**Post date:** [June 17, 2022, 2:03pm UTC](https://discuss.elastic.co/t/edge-n-gram-token-filter-why-side-parameter-is-deprecated/307519/1 "2022-06-17T14:03:46Z")

</div>

Hi,

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

Thanks.

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [June 17, 2022, 2:19pm UTC](https://discuss.elastic.co/t/edge-n-gram-token-filter-why-side-parameter-is-deprecated/307519/2 "2022-06-17T14:19:34Z")

</div>

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`](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-reverse-tokenfilter.html) token filter before and after the `edge_ngram` filter to achieve the same results.

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

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 15, 2022, 2:19pm UTC](https://discuss.elastic.co/t/edge-n-gram-token-filter-why-side-parameter-is-deprecated/307519/3 "2022-07-15T14:19:51Z")

</div>

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