You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2011/11/28 15:44:48 UTC
[Solr Wiki] Trivial Update of "AnalyzersTokenizersTokenFilters" by JayLuker
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "AnalyzersTokenizersTokenFilters" page has been changed by JayLuker:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters?action=diff&rev1=129&rev2=130
By default, minGramSize is 1, maxGramSize is 1 and side is "front". You can also set side to generate the ngrams from right to left by setting "side" to a value of "back"
- minGramSize - the minimum number of characters to start with. For example, minGramSize=4 would mean that a word like '''Apache''' => "Apac", "Apache" would be the 2 tokens stored.
+ minGramSize - the minimum number of characters to start with. For example, minGramSize=4 would mean that a word like '''Apache''' => "Apac", "Apach", "Apache" would be the 3 tokens stored.
This !FilterFactory is very useful in matching substrings of particular terms in the index during query time.