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 Venu Mittal <me...@yahoo.com> on 2009/03/12 09:03:57 UTC
Highlighting the searched term in resultset
I was wondering if there is any way of highlighting the searched term in the resultset directly instead of having it as a separate "lst" element.
Doing it through xsl transformation would be one way.
Has anybody implemented any other better solution ?
e.g
<result name="response" numFound="293" start="0"> <doc>
<str name="item_type"><HIGHLIGHTED>iPhone</HIGHLIGHTED></str>
<str name="keywords">iphone sell buy/str>
<date name="last_modified">2007-11-20T05:36:29Z</date>
<date name="releasedate">2007-11-17T06:00:00Z</date>
<str name="type">ARTICLE</str>
</doc>
</result>
TIA.