lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] jesuslpm opened a new issue #496: How to migrate this analyzer from 3.0.3 to 4.8
Date Thu, 15 Jul 2021 10:54:02 GMT

jesuslpm opened a new issue #496:
URL: https://github.com/apache/lucenenet/issues/496


   I have this analyzer that works on 3.0.3. How to migrate it to 4.8?
   
    ```
      public class AccentFoldingAnalyzer : Analyzer
       {
           private readonly Analyzer subAnalyzer;
   
           public AccentFoldingAnalyzer(Analyzer subAnalyzer)
           {
               this.subAnalyzer = subAnalyzer;
           }
   
           public override TokenStream TokenStream(string fieldName, TextReader reader)
           {
               var result = subAnalyzer.TokenStream(fieldName, reader);
               result = new AccentFoldingFilter(result);
               return result;
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message