Skip to content

Instantly share code, notes, and snippets.

@2013techsmarts
Created November 19, 2019 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2013techsmarts/6a22e2b49d6a827db07047c5073f3659 to your computer and use it in GitHub Desktop.
Save 2013techsmarts/6a22e2b49d6a827db07047c5073f3659 to your computer and use it in GitHub Desktop.
Auto Complete Suggestions Implementation Using Apache Solr- Approach1 - schema.xml
<fieldType name="text_suggest" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="1000"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment