Thanks Christian. I did try many options indicated in wiki, didn't work. So I 
want to see if the basics work, i.e. only define hl=true and a field for hl.fl. 
Do I need to include something global to make hl settings work?

Thanks,
- Kevin

-----Original Message-----
From: Christian Vogler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2008 5:55 AM
To: solr-user@lucene.apache.org
Subject: Re: solr highlighting

On Wednesday 14 May 2008 09:21:36 Kevin Xiao wrote:
> Hi there,
>
> I am new to solr. I want search term to be highlighted on the results. I
> thought it is pretty simple, but could not make it work. I read a lot of
> solr documents and mail archives (I wish there is a search function for
> this, we are talking about solr, aren’t we? ☺).

Take a look at hl.fragsize, hl.snippets, and hl.mergeContiguous, as per
http://wiki.apache.org/solr/HighlightingParameters.

In particular, setting hl.fragsize to 0 might be what you want if I understand
your question correctly.

Best regards
- Christian
--
Christian Vogler, Ph.D.
Institute for Language and Speech Processing, Athens, Greece
http://gri.gallaudet.edu/~cvogler/
[EMAIL PROTECTED]

Reply via email to