[
https://issues.apache.org/jira/browse/LUCENE-5437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000279#comment-14000279
]
Ahmet Arslan commented on LUCENE-5437:
--------------------------------------
How about this change in {{ASCIIFoldingFilterFactory}}?. Aways return
preserveOriginal=false in getMultiTermComponent so we don't get exceptions.
{code:java}
@Override
public AbstractAnalysisFactory getMultiTermComponent() {
if (preserveOriginal) {
Map<String, String> args = new HashMap<>(1);
args.put("preserveOriginal", "false");
return new ASCIIFoldingFilterFactory(args);
} else
return this;
}
{code}
> ASCIIFoldingFilter that emits both unfolded and folded tokens
> -------------------------------------------------------------
>
> Key: LUCENE-5437
> URL: https://issues.apache.org/jira/browse/LUCENE-5437
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/analysis
> Affects Versions: 4.7, 5.0
> Reporter: Nik Everett
> Assignee: Simon Willnauer
> Priority: Minor
> Fix For: 4.7, 5.0
>
> Attachments: LUCENE-5437.patch
>
>
> I've found myself wanting an ASCIIFoldingFilter that emits both the folded
> tokens and the original, unfolded tokens.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]