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); } }
private void init(Version matchVersion) { this.scanner = new ClassicTokenizerImpl(input); }
/// <summary> /// Creates a new UAX29URLEmailTokenizer with a given <seealso cref="org.apache.lucene.util.AttributeSource.AttributeFactory"/> /// </summary> public UAX29URLEmailTokenizer(Version matchVersion, AttributeFactory factory, Reader input) : base(factory, input) { this.scanner = getScannerFor(matchVersion); }
/// <summary> /// Creates a new instance of the UAX29URLEmailTokenizer. Attaches /// the <code>input</code> to the newly created JFlex scanner. /// </summary> /// <param name="input"> The input reader </param> public UAX29URLEmailTokenizer(Version matchVersion, Reader input) : base(input) { this.scanner = getScannerFor(matchVersion); }
private void Init(LuceneVersion matchVersion) { this.scanner = new ClassicTokenizerImpl(input); }
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); } }