You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Massimo Schiavon <ms...@volunia.com> on 2011/08/09 10:46:38 UTC

Possible bug in FastVectorHighlighter

In my Solr (3.3) configuration I specified these two params:

<str name="hl.simple.pre"><![CDATA[<b>]]></str>
<str name="hl.simple.post"><![CDATA[</b>]]></str>

when I do a simple search I obtain correctly highlighted results where 
matches areenclosed with correct tag.
If I do the same request with hl.useFastVectorHighlighter=true in the 
http query string (or specifying the same parameter in the config file) 
the metches are enclosed with <em> tag (the default value).

Anyone has encountered the same issue?

Re: Possible bug in FastVectorHighlighter

Posted by Massimo Schiavon <ms...@volunia.com>.
Worked fine. Thanks a lot!

Massimo

On 09/08/2011 11:58, Jayendra Patil wrote:
> Try using -
>
>       <str name="hl.tag.pre"><![CDATA[<b>]]></str>
>       <str name="hl.tag.post"><![CDATA[</b>]]></str>
>
> Regards,
> Jayendra
>
>
> On Tue, Aug 9, 2011 at 4:46 AM, Massimo Schiavon<ms...@volunia.com>  wrote:
>> In my Solr (3.3) configuration I specified these two params:
>>
>> <str name="hl.simple.pre"><![CDATA[<b>]]></str>
>> <str name="hl.simple.post"><![CDATA[</b>]]></str>
>>
>> when I do a simple search I obtain correctly highlighted results where
>> matches areenclosed with correct tag.
>> If I do the same request with hl.useFastVectorHighlighter=true in the http
>> query string (or specifying the same parameter in the config file) the
>> metches are enclosed with<em>  tag (the default value).
>>
>> Anyone has encountered the same


Re: Possible bug in FastVectorHighlighter

Posted by Jayendra Patil <ja...@gmail.com>.
Try using -

     <str name="hl.tag.pre"><![CDATA[<b>]]></str>
     <str name="hl.tag.post"><![CDATA[</b>]]></str>

Regards,
Jayendra


On Tue, Aug 9, 2011 at 4:46 AM, Massimo Schiavon <ms...@volunia.com> wrote:
> In my Solr (3.3) configuration I specified these two params:
>
> <str name="hl.simple.pre"><![CDATA[<b>]]></str>
> <str name="hl.simple.post"><![CDATA[</b>]]></str>
>
> when I do a simple search I obtain correctly highlighted results where
> matches areenclosed with correct tag.
> If I do the same request with hl.useFastVectorHighlighter=true in the http
> query string (or specifying the same parameter in the config file) the
> metches are enclosed with <em> tag (the default value).
>
> Anyone has encountered the same issue?
>