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

Reply via email to