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 Bertrand DUMAS-PILHOU <bd...@eurocortex.fr> on 2009/04/22 22:43:03 UTC

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.


RE: Highlight question

Posted by Bertrand DUMAS-PILHOU <bd...@eurocortex.fr>.
Thanks a lot for your answer, I'm going to test and I will reply.

Bertrand

Ensdorf Ken wrote:
> 
> 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:bdumasp@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.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Highlight-question-tp23175851p23198244.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: Highlight question

Posted by Ensdorf Ken <En...@zoominfo.com>.
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:bdumasp@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.