lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Matheis <matheis.ste...@googlemail.com>
Subject Re: I need to improve highlighting
Date Wed, 18 May 2011 12:37:55 GMT
Bryan, on Q2 - what about using xpath like 'str/em' ?

Regards
Stefan

On Wed, May 18, 2011 at 2:25 PM, bryan rasmussen
<rasmussen.bryan@gmail.com> wrote:
> Hi,
>
> If I do a search
> http://localhost:8983/solr/tester/select/?q=kongeriget&hl=true then in
> the <lst name="highlighting"> subtree I get
> <arr name="all_text">
> -
> <str>
> Aftale mellem <em>kongeriget</em> Danmark og <em>kongeriget</em>
Sverige
> </str>
> </arr>
> </lst>
>
>
> What I need to do is to either
>
>  1. Return all of all_text which should be possible by setting
> hl.fragsize=0 but I still never go beyond the default for the field (I
> can go less than 100 but not more)
> 2. Get a count of number of highlighted instances(preferable) or
> return each highlighted text in a separate str element - so
> <str>kongeriget</str><str>kongeriget</str>
>
>
> thanks,
> Bryan Rasmussen
>

Mime
View raw message