Re: Highlight question

2010-06-23 Thread Ahmet Arslan
> In the solrconfig.xml I have been able to change the
> hl.simple.pre/post variable, but when I try to change the
> hl,regex pattern or the hl.snippets they don't have any
> effect. I thought the hl.snippets would alow me to find more
> than one and highlight it, and well I tried a bunch of regex
> patterns but they didn't do anything.

4 param should go to under default section of 
your default SearchHandler. 



all 
4 



Also &hl.formatter=regex paremter is required to activate regular expression 
based fragmenter.





RE: Highlight question

2009-04-23 Thread Bertrand DUMAS-PILHOU

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: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.
> 
> 
> 

-- 
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

2009-04-22 Thread Ensdorf Ken
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.