hello,

thanks for the info ; it's exactly what i need. i can't manage to make it works, though. it's strange because i have the same problem with facets : it seems that some options are not taken in account...

for example, here is my request to solr:
q=%28%28titre:moulin%29+OR+%28texte:moulin%29+OR+%28sujet:moulin%29+OR+%28desc:moulin%29%29&version=2.1&start=0&rows=12&fl=*+score&qt=standard&hl=true&hl.fl=texte,desc&hl.snippets=3&hl.fragsize=150

and an extract of the response is :
<doc>
<float name="score">0.0151801035</float>
<str name="PID">bml:8071</str>
<str name="texte">
Les Grands Moulins
Le chemin de la Bouteille n'est pas, comme son nom semblerait l'indiquer, le chemin préféré des ivrognes. En l'occurrence, c'est plutôt le chemin des Boulangers ou mieux encore (... cutted by me, in fact all the field is returned)
</str>
<str name="thumb">http://10.208.0.215:8080/fedora/get/bml:8071/Thumb</str>
<str name="type">page</str>
</doc>

obviously the hl parameters haven't been taken in account. I've hot the same problem with the facet.mincount parameter; facets works fine, but this parameter is not taken in account for some reason...

did i done something wrong ?

thanks,
kind regards,
p-y




From: "Thierry Collogne" <[EMAIL PROTECTED]>
Reply-To: solr-user@lucene.apache.org
To: solr-user@lucene.apache.org
Subject: Re: Snippets of indexed text
Date: Thu, 29 Mar 2007 08:56:51 +0200

It is possible. You need to pass highlighting parameters. Look here :

     http://wiki.apache.org/solr/HighlightingParameters

Hope this helps.


_________________________________________________________________
It’s tax season, make sure to follow these few simple tips http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMMartagline

Reply via email to