[ https://issues.apache.org/jira/browse/LUCENE-8273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16458569#comment-16458569 ]
Robert Muir commented on LUCENE-8273: ------------------------------------- sounds good. yeah i know the resource stuff/keywork marking is tricky, i looked at what the existing factory is doing and its pretty crazy. it seems you need to make the ConditionalTokenFilterFactory implement the resourceloaderaware stuff always, because its separately a bug that the current patch will "hide" the resourceloader from anything inside the if? So I think it should implement the interface and pass the loader in its inform() method to stuff inside. Maybe this leads towards a solution to what you need for the conditional part, too. > Add a ConditionalTokenFilter > ---------------------------- > > Key: LUCENE-8273 > URL: https://issues.apache.org/jira/browse/LUCENE-8273 > Project: Lucene - Core > Issue Type: New Feature > Reporter: Alan Woodward > Priority: Major > Attachments: LUCENE-8273.patch, LUCENE-8273.patch, LUCENE-8273.patch, > LUCENE-8273.patch > > > Spinoff of LUCENE-8265. It would be useful to be able to wrap a TokenFilter > in such a way that it could optionally be bypassed based on the current state > of the TokenStream. This could be used to, for example, only apply > WordDelimiterFilter to terms that contain hyphens. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org