1. Docs
  2. Cloaked Search
  3. Usage
  4. Configuration
  5. Filters - reverse
  1. Docs
  2. Cloaked Search
  3. Usage
  4. Configuration
  5. Filters - reverse

Reverse token filter

Reverses each token in a stream. For example, you can use the reverse filter to change the quick brown to eht kciuq nworb.

This can be used in combination with the index_prefixes field mapping option to support suffix searches on a field.

Add to an analyzer

reverse can be added to any analyzer as a filter.

JSON
"analyzer": { "reverse_analyzer": { "type": "custom", "tokenizer": "standard", "filter": ["reverse"] } }

Was this page helpful?

One sec... bot checking