lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: highlight search keywords on html page
Date Fri, 16 Feb 2007 19:25:57 GMT

I'm not sure i'm understanding your question ... is it how to highlight a
stored field that has HTML in it, or how to index a chunk of HTML text?

the first should be no difference then highlighting any other bit of text
-- the second can be accomplished using the
HTMLStripStandardTokenizerFactory (or
HTMLStripWhitespaceTokenizerFactory) in your schema.

: With solr, I can generate a list of links containing highlighted fragments.
: After a user clicks a link, I will fetch the stored and not-indexed html
: from solr and return it to user.
: But I want search keywords within the html to be highlighted just like
: google.
: I'm wondering what people are using to accomplish this very common task.



-Hoss


Mime
View raw message