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!
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.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.