lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Grande <juan.gra...@gmail.com>
Subject Re: Highlighting in 3.5?
Date Mon, 02 Jan 2012 21:39:51 GMT
Hi Darren,

This is the expected behavior. Have you tried setting the
hl.requireFieldMatch parameter to true? See:
http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch

*Juan*



On Mon, Jan 2, 2012 at 10:54 AM, Darren Govoni <darren@ontrenet.com> wrote:

> Hi,
>  Can someone tell me if this is correct behavior from Solr.
>
> I search on a dynamic field:
>
> field_t:[* TO *]
>
> I set highlight fields to "field_t,text_t" but I am not searching
> specifically inside text_t field.
>
> The highlights for text_t come back with EVERY WORD. Maybe because of the
> [* TO *], but
> the query semantics indicate not searching on text_t even though
> highlighting is enabled.
>
> Is this correct behavior? it produces unwanted highlight results.
>
> I would expect Solr to know what fields are participating in the query and
> only highlight
> those that are involved in the result set.
>
> Thanks,
> Darren
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message