public override TokenStream ReusableTokenStream(System.String fieldName, System.IO.TextReader reader)
 {
     var tokenizer = (Tokenizer)PreviousTokenStream;
     if (tokenizer == null)
     {
         tokenizer = new CustomTokenizer(reader);
         PreviousTokenStream = tokenizer;
     }
     else
         tokenizer.Reset(reader);
     return tokenizer;
 }
Example #2
0
        public override TokenStream ReusableTokenStream(System.String fieldName, System.IO.TextReader reader)
        {
            var tokenizer = (Tokenizer)PreviousTokenStream;

            if (tokenizer == null)
            {
                tokenizer           = new CustomTokenizer(reader);
                PreviousTokenStream = tokenizer;
            }
            else
            {
                tokenizer.Reset(reader);
            }
            return(tokenizer);
        }