Hi Andre,
thanks this did the job. I also had to enable edismax and set the default 
parameter there - otherwise no highlighting at all.

Best
Dirk

Am 11.03.2013 um 13:59 schrieb André Widhani <andre.widh...@digicol.de>:

> Hi Dirk,
> 
> please check 
> http://wiki.apache.org/solr/HighlightingParameters#hl.requireFieldMatch - 
> this may help you.
> 
> Regards,
> André
> 
> ________________________________________
> Von: Dirk Wintergruen [dwin...@mpiwg-berlin.mpg.de]
> Gesendet: Montag, 11. März 2013 13:56
> An: solr-user@lucene.apache.org
> Betreff: Highlighting problems
> 
> Hi all,
> 
> I have problems with the higlighting mechanism:
> 
> The query is:
> 
> http://127.0.0.1:8983/solr/mpiwgweb/select?facet=true&facet.field=description&facet.field=lang&facet.field=main_content&start=0&q=meier+AND+%28description:member+OR+description:project%29
> 
> 
> after that:
> 
> In the field "main_content" which is the default search field.
> 
> "meier" as well  as as "member" and "project" is highlighted, although im 
> searching for member and project only in the field description.
> 
> The search results are ok, as far as I can see.
> 
> 
> my settings
> 
> <requestHandler name="/select" class="solr.SearchHandler">
>    <!-- default values for query parameters can be specified, these
>         will be overridden by parameters in the request
>      -->
>     <lst name="defaults">
>       <str name="echoParams">explicit</str>
>       <int name="rows">10</int>
>        <str name="facet.limit">300</str>
>        <str name="hl">on</str>
>       <str name="hl.fl">main_content</str>
>       <str name="hl.encoder">html</str>
>       <str name="hl.simple.pre"><![CDATA[<em class="webSearch_hl">]]></str>
>       <str name="hl.fragsize">200</str>
>       <str name="hl.snippets">2</str>
>       <str name="hl.usePhraseHighlighter">true</str>
>     </lst>
>     <arr name="last-components">
>                <str>tvComponent</str>
>        </arr>
> 
> 
> </requestHandler>
> 
> Cheers
> Dirk
> 

Reply via email to