coldfusion - Removing solr.PorterStemFilterFactory from Solr fieldtype filter causes Highlighting error -


in coldfusion site using solr searches, trying edit schema.xml file stemming turned off , exact word matches returned. how fieldtype defined text:

<fieldtype name="text" class="solr.textfield" positionincrementgap="100">   <analyzer>     <tokenizer class="solr.standardtokenizerfactory"/>     <filter class="solr.commongramsfilterfactory" words="stopwords.txt" ignorecase="true"/>     <filter class="solr.lowercasefilterfactory"/>     <filter class="solr.removeduplicatestokenfilterfactory"/>     <filter class="solr.porterstemfilterfactory"/>   </analyzer> </fieldtype> 

i removed analyzer node, restarted core handling particular search , following exception message: "element highlightingresult undefined in cfml structure referenced part of exception."

in results page, word matches highlighted. page results rendered in following field:

<field name="body" type="text" indexed="true" stored="true" multivalued="false" /> 

i changed type in body field "string" , got same error. when took solr.porterstemfilterfactory filter out of text fieldtype, result page looks ok long item has exact match. when item stemmed match found (ie. word searched "guard" , item found "guarded"), exception thrown.

i've come across number of different ways set fieldtype return exact match, issue highlighting 1 has me stumped.

update: have found not found words highlighted in text displayed, if found in html tags, page renderer tries wrap in tag. so, word "lepers", tag "lepers" in title gets this, breaking tag: broken tag


Popular posts from this blog