[
https://issues.apache.org/jira/browse/LUCENE-5740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074785#comment-14074785
]
David Smiley commented on LUCENE-5740:
--------------------------------------
Yeah... to do this feature right, it needs to know about these cases. Then
perhaps the stripping part might be easier if it has an accurate depth, as it
wouldn't include implicitly closing elements (e.g. IMG). But in the end this
feature is optional so a best effort attempt with rules about known HTML tags
is fine. I agree this means looking for a close of the same element name.
I'll try working on something this weekend, or Monday.
> Add stripContentOfTags option to HTMLStripCharFilter
> ----------------------------------------------------
>
> Key: LUCENE-5740
> URL: https://issues.apache.org/jira/browse/LUCENE-5740
> Project: Lucene - Core
> Issue Type: New Feature
> Components: modules/analysis
> Reporter: David Smiley
> Assignee: David Smiley
>
> HTMLStripCharFilter should have an option to strip out the sub-content of
> certain elements. It already does this for SCRIPT & STYLE but it should be
> configurable to add more. I don't want certain elements to have their
> contents to be searchable.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]