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]