Edge_ngram anchoring to the back

I'd like to use an edge_ngram that's anchored to the back of a string, like this (input "Quick", "min_gram": 2, "max_gram": 5):

[ ik, ick, uick, Quick ]

How can I achive this? Thanks!

You can use a combination of:

[ "reverse", "edge", "reverse" ] so it will produce:

  • [ kciuQ ]
  • [ kc, kci, kciu, kciuQ ]
  • [ ck, ick, uick, Quick ]

Thanks to @jpountz for the solution. :slight_smile:

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