コード例 #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);
     }
 }
コード例 #2
0
 private void init(Version matchVersion)
 {
     this.scanner = new ClassicTokenizerImpl(input);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 private void Init(LuceneVersion matchVersion)
 {
     this.scanner = new ClassicTokenizerImpl(input);
 }
コード例 #6
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);
     }
 }
コード例 #7
0
	  /// <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);
	  }
コード例 #8
0
	  /// <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);
	  }