How to highlight a field in searchresult using solr

2011-06-20 Thread Romi
Hi, I want to include highlighting feature in my search application using solr. I did necessary changes in config file for highlighting feature. when i run the url with hl=truehl.fl=somefield i got the highligting. now i want to display these highlighted fields in my search.jsp page. To display

Re: How to highlight a field in searchresult using solr

2011-06-20 Thread Jan Høydahl
Hi, You have asked the question before in another thread, and I have tried to answer http://search-lucene.com/m/586GL1pMaEc1 You DO need to get the highlighted result from the highlighting tag separately. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com Solr Training

Re: How to highlight a field in searchresult using solr

2011-06-20 Thread Romi
Jan Høydahl / Cominvent, without parsing json object for highlighting i am able to show the result just using the url with hl=true and hl.fl=somefield. and i got the field highlighted. but what i want is to highlight only data i pass in the query ,in that somefield not full field data. How can