lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ahmet Arslan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5437) ASCIIFoldingFilter that emits both unfolded and folded tokens
Date Fri, 16 May 2014 20:41:19 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message