sitecore - Solr auto complete with ngram ignore spaces and upper latters -
i have title string fields:
word 111 word 222 word xyz word ynx
i have next settings in solr index it
<fieldtype name="auto_complete" class="solr.textfield" positionincrementgap="100"> <analyzer type="index"> <tokenizer class="solr.standardtokenizerfactory" /> <!-- <filter class="solr.stopfilterfactory" ignorecase="true" words="stopwords.txt" /> --> <filter class="solr.worddelimiterfilterfactory" generatewordparts="1" generatenumberparts="1" catenatewords="1" catenatenumbers="1" catenateall="1" splitoncasechange="1" splitonnumerics="1" preserveoriginal="1" /> <filter class="solr.lowercasefilterfactory" /> <filter class="solr.edgengramfilterfactory" mingramsize="2" maxgramsize="40" /> <filter class="solr.patternreplacefilterfactory" pattern="([^\w\d\*æøåÆØÅ ])" replacement="" replace="all"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.standardtokenizerfactory" /> <filter class="solr.worddelimiterfilterfactory" generatewordparts="0" generatenumberparts="0" catenatewords="0" catenatenumbers="0" catenateall="0" splitoncasechange="0" splitonnumerics="0" /> <!-- <filter class="solr.stopfilterfactory" ignorecase="true" words="stopwords.txt" /> <filter class="solr.synonymfilterfactory" synonyms="synonyms.txt" ignorecase="true" expand="true" /> --> <filter class="solr.lowercasefilterfactory" /> <filter class="solr.patternreplacefilterfactory" pattern="([^\w\d\*æøåÆØÅ ])" replacement=" " replace="all"/> </analyzer> </fieldtype>
i can search via , getting results if type wo,wor, word, 11, 111 etc. can't results if type word xyz or xyz how activate option use spaces , upper case auto complete ?
Comments
Post a Comment