Edge N-gram at word level

In Elasticsearch, edge n-gram divides a word into progressive tokens, starting from the begining, and adding a new letter per each token.

Is there a way to add the same logic at word level?

"This is a sentence"

["This", "This is", "This is a", "This is a sentence"]

Thanks

Have a look at Shingle token filter | Elasticsearch Guide [7.13] | Elastic but it's more a ngram like than a edge n gram.

Thanks for answering, David.

Yes. Shingle acts as an n-gram filter, but I'd like to make it edge n-gram style.

edge shingle

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