Add the following parameters to the url:

hl=true&hl.fl=xhtml

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



> -----Original Message-----
> From: Bertrand DUMAS-PILHOU [mailto:bdum...@eurocortex.fr]
> Sent: Wednesday, April 22, 2009 4:43 PM
> To: solr-user@lucene.apache.org
> Subject: Highlight question
>
>
> Hi everybody,
>
> I have an schema seems like this in SOLR:
> title, type:string , indexed not stored
> body, type:string, stemmed, indexed not stored
> xhtml, type:string, not indexed, stored
>
> When user make an search on field title, body or both, I want to
> highlight
> the match string in the xhtml field only.
>
> How I can do this ?
>
> Thanks and sorry for my english.
> --
> View this message in context: http://www.nabble.com/Highlight-question-
> tp23175851p23175851.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to