Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <fieldType name="edgytext" class="solr.TextField" positionIncrementGap="100">
- <analyzer type="index">
- <tokenizer class="solr.KeywordTokenizerFactory"/>
- <filter class="solr.LowerCaseFilterFactory"/>
- <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all" />
- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
- <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="25" />
- </analyzer>
- <analyzer type="query">
- <tokenizer class="solr.KeywordTokenizerFactory"/>
- <filter class="solr.LowerCaseFilterFactory"/>
- <filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement="" replace="all" />
- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
- </analyzer>
- </fieldType>
- Example:
- Querystring: "Wolfgang Am"
- Results:
- "Wolfgang Johannsen"
- "Wolfgang Amadeus Mozart"
- "Wolfgang Something"
Add Comment
Please, Sign In to add comment