lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bing <nibing_...@hotmail.com>
Subject Solr highlighting configuration - hl.simple.pre/hl.simple.post - no effect of change
Date Tue, 20 Sep 2011 03:06:25 GMT
Hi, all guys, 

I am working on tomcat and depend on solr to generate some response and
highlighting, and currently I am handling single term matching. 
 
What I want is to change two properties- hl.simple.pre, hl.simple.post- in
Solr highlighting configuration file, but currently there is no effect of
change after I reboot my tomcat. 

*Current highlighting*: <em>matchedTerm </em>
*Change in SolrConfig.xml* : 
<formatter name="html" class="org.apache.solr.highlight.HtmlFormatter"
default="true">
    <lst name="defaults">
	 <str name="hl.simple.pre"></str> 
     <str name="hl.simple.post"></str>
    </lst>
   </formatter>
  </highlighting>
*Expected*: *matchedTerm *

I feel it is pretty simple and straight-forward, but cannot get it done. So,
if someone can help me out, thank you very much!

--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-highlighting-configuration-hl-simple-pre-hl-simple-post-no-effect-of-change-tp3350896p3350896.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Mime
View raw message