lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Highlight question
Date Wed, 23 Jun 2010 20:44:30 GMT
> In the solrconfig.xml I have been able to change the
> hl.simple.pre/post variable, but when I try to change the
> hl,regex pattern or the hl.snippets they don't have any
> effect. I thought the hl.snippets would alow me to find more
> than one and highlight it, and well I tried a bunch of regex
> patterns but they didn't do anything.

<int name="hl.snippets">4</int> param should go to under default section of your
default SearchHandler. 

<requestHandler name="standard" class="solr.SearchHandler" default="true">
<lst name="defaults">
<str name="echoParams">all</str> 
<int name="hl.snippets">4</int> 
</lst>
</requestHandler>

Also &hl.formatter=regex paremter is required to activate regular expression based fragmenter.


      

Mime
View raw message