Exemplo n.º 1
0
 private void Init(Version matchVersion)
 {
     if (matchVersion.OnOrAfter(Version.LUCENE_47))
     {
         this.scanner = new StandardTokenizerImpl(input);
     }
     else if (matchVersion.onOrAfter(Version.LUCENE_40))
     {
         this.scanner = new StandardTokenizerImpl40(input);
     }
     else if (matchVersion.onOrAfter(Version.LUCENE_34))
     {
         this.scanner = new StandardTokenizerImpl34(input);
     }
     else if (matchVersion.onOrAfter(Version.LUCENE_31))
     {
         this.scanner = new StandardTokenizerImpl31(input);
     }
     else
     {
         this.scanner = new ClassicTokenizerImpl(input);
     }
 }
Exemplo n.º 2
0
 private void Init(LuceneVersion matchVersion)
 {
     this.scanner = new ClassicTokenizerImpl(input);
 }