[
https://issues.apache.org/jira/browse/LUCENE-8273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16457066#comment-16457066
]
Mike Sokolov commented on LUCENE-8273:
--------------------------------------
Cool! I haven't read the patch carefully, but I looked at the tests, and I
see RandomChains test so this is probably covered, but I was wondering
about the case you mentioned earlier where say there is a multi-token
synonym and shouldFilter() is true for the first token and false for the
second. I guess the filter just does not apply the synonym then?
On Fri, Apr 27, 2018 at 12:44 PM, Alan Woodward (JIRA) <[email protected]>
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]