[ 
https://issues.apache.org/jira/browse/LUCENE-5740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074752#comment-14074752
 ] 

David Smiley commented on LUCENE-5740:
--------------------------------------

I think I may get your concern.   If the tag that I was stripping was paragraph 
<p> instead of foo, then the paragraph stripping would continue on to </body>.  
  So it may appear that the stripping should end at the *sooner* of a closing 
tag depth, or a *matching* close of the current element name.  A *matching* 
close means I need to keep track of two embedded tag depth integers, one for 
any element name, one for those that have the same name as what I'm stripping.  
Yeah?

> 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]

Reply via email to