You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/11/18 09:12:58 UTC

[jira] [Commented] (LUCENE-7536) ASCIIFoldingFilterFactory.getMultiTermComponent can emit two tokens

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

ASF subversion and git services commented on LUCENE-7536:
---------------------------------------------------------

Commit 6d540b9d7a1a9b944bacb348c7ea681705e462e4 in lucene-solr's branch refs/heads/master from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6d540b9 ]

LUCENE-7536: ASCIIFoldingFilterFactory.getMultiTermComponent can emit two tokens.


> ASCIIFoldingFilterFactory.getMultiTermComponent can emit two tokens
> -------------------------------------------------------------------
>
>                 Key: LUCENE-7536
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7536
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7536.patch
>
>
> My understanding is that it is a requirement for multi-term analysis to only normalize tokens, and not eg. remove tokens (stop filter) or add tokens (by tokenizing or adding synonyms). Yet ASCIIFoldingFilterFactory.getMultiTermComponent will return a factory that emits synonyms if preserveOriginal is set to true on the original filter.
> This looks like a bug to me but I'm not entirely sure how to fix it. Should the multi-term analysis component do ascii folding or not if the original factory has preserveOriginal set to true?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org