Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # user - HTML tags and Lucene highlighting


Copy link to this message
-
RE: HTML tags and Lucene highlighting
Steven A Rowe 2012-04-05, 19:24
Hi okayndc,

What *do* you want?

Steve

-----Original Message-----
From: okayndc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2012 1:34 PM
To: [EMAIL PROTECTED]
Subject: HTML tags and Lucene highlighting

Hello,

I currently use Lucene version 3.0...probably need to upgrade to a more current version soon.
The problem that I have is when I test search for a an HTML tag (ex.
<strong>), Lucene returns
the highlighted HTML tag ~ which is what I DO NOT want.  Is there a way to "filter" HTML tags?
I have read up on HTMLStripChar filter (packaged with Solr) and wondered if this is the way to go?

Any help will be greatly appreciated,
Thanks

---------------------------------------------------------------------