Autocomplete in Solr is case sensitive -
i have implemented autocomplete component in auto complete becomes case sensitive.i have added following piece of code , works case sensitive.how make case insensitive.
<searchcomponent name="suggest" class="solr.suggestcomponent"> <lst name="suggester"> <str name="name">mysuggester</str> <str name="lookupimpl">fuzzylookupfactory</str> <str name="dictionaryimpl">documentdictionaryfactory</str> <str name="field">name_s</str> <str name="weightfield">price</str> <str name="suggestanalyzerfieldtype">text_general</str> <str name="buildonstartup">false</str> </lst> </searchcomponent> <requesthandler name="/suggest" class="solr.searchhandler" startup="lazy" > <lst name="defaults"> <str name="suggest">true</str> <str name="suggest.count">10</str> </lst> <arr name="components"> <str>suggest</str> </arr> </requesthandler>
i got running adding following in schema.xml. in schema.xml
<fieldtype name="text_general" class="solr.textfield"> <analyzer type="index"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.lowercasefilterfactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.lowercasefilterfactory"/> </analyzer> </fieldtype>
Comments
Post a Comment