Max Schmidt
Max Schmidt

Reputation: 7665

Apache Solr filter like EdgeNGramFilterFactory that only consider complete words?

I'm looking for a solr filter that can convert an input like

"This is a sentence"

in following tokens

"This", "This is", "This is a", "This is a sentence"

Is there such a filter?

Upvotes: 1

Views: 96

Answers (1)

Jayendra
Jayendra

Reputation: 52789

Lucene provides a filter, however it would generate Shingles

solr.ShingleFilterFactory
This will generate Shingles e.g. "This is a sentence" -> This is, is a, a sentence

else, you need to Extend or Implement your own.

Upvotes: 3

Related Questions