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 Mike Klaas <mi...@gmail.com> on 2008/04/19 05:49:56 UTC

Re: Problrm Highlighting

[moving to solr-user.  Questions about how to use Solr belong there]

On 15-Apr-08, at 2:37 AM, khirb7 wrote:
>
> hello every body
>
> Here is my problem :
>
> when using highlighting solr   return only the best fragment (the most
> relevant  section of the document) like this
> "Nicolas "Sarkozy" naƮt le 28 janvier 1955 dans le 17e"
> but I want solr to return me not only the best section but the best  
> sections
> (that I precise the number my self )
> at first I thought that hl.snippet=<number> is suitable to generate  
> best
> sections of text but I noticed that this parameter has no effect on  
> the
> result of highlighting, even using it on per field like this:
> http://localhost:8983/solr/select?indent=on&version=2.2&q=arcDoc%3Asarkozy&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl=on&hl.fl=arcDoc&f.arcDoc.hl.snippets=3&hl.fragsize=300

Could you copy and paste the _exact_ query (which you provide above),  
content of the field (if appropriate) and xml output of that query?

thanks,
-Mike