Solr Search text with underscore (_) -
how search text containing underscore(_) in solr. eg: this_is_for_testing". want search "testing".
you can use solr.worddelimiterfilterfactory job.
<fieldtype name="text_general" class="solr.textfield" positionincrementgap="100" multivalued="true"> <analyzer type="index"> <tokenizer class="solr.whitespacetokenizerfactory" /> <filter class="solr.worddelimiterfilterfactory" generatewordparts="1" catenatewords="1" generatenumberparts="1" catenatenumbers="0" splitonnumerics="1" catenateall="0" splitoncasechange="1" stemenglishpossessive="1" preserveoriginal="1" /> <filter class="solr.lowercasefilterfactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.standardtokenizerfactory"/> <filter class="solr.stopfilterfactory" words="stopwords.txt" ignorecase="true"/> <filter class="solr.lowercasefilterfactory"/> </analyzer> </fieldtype>
Comments
Post a Comment