--- On Mon, 2/7/11, alex <alex.alex.alex.9...@gmail.com> wrote:

> From: alex <alex.alex.alex.9...@gmail.com>
> Subject: hl.snippets in solr 3.1
> To: solr-user@lucene.apache.org
> Date: Monday, February 7, 2011, 7:38 PM
> hi all,
> I'm trying to get result like :
> blabla <b>keyword</b> blabla ...
> blabla<b>keyword</b> blabla...
> 
> so, I'd like to show 2  fragments.I've added these
> settings
>     <str
> name="hl.simple.pre"><![CDATA[<b>]]></str>
>     <str
> name="hl.simple.post"><![CDATA[</b>]]></str>
>    <str
> name="f.content.hl.fragsize">20</str>
>     <str
> name="f.content.hl.snippets">3</str>
> 
> but I get only 1 fragment blabla <b>keyword</b>
> blabla.
> Am I trying to do it right way? Is it what can be done via
> changes in config file?
> 
> how do I add separator between fragments(like ... in this
> example)?
> thanks.
> 

These two should be declared under the defaults section of your requestHandler.

  <int name="f.content.hl.fragsize">20</int>
  <int name="f.content.hl.snippets">3</int>
 
Where did you define them? Under the highlighting section in solrconfig.xml? 



Reply via email to