Inheritance: Lucene.Net.Analysis.TokenFilter
Exemple #1
0
        public virtual void  TestPayloadCopy()
        {
            System.String s = "how now brown cow";
            TokenStream   ts;

            ts = new WhitespaceTokenizer(new System.IO.StringReader(s));
            ts = new PayloadSetter(ts);
            VerifyPayload(ts);

            ts = new WhitespaceTokenizer(new System.IO.StringReader(s));
            ts = new PayloadSetter(ts);
            VerifyPayload(ts);
        }
        public virtual void TestPayloadCopy()
        {
            System.String s = "how now brown cow";
            TokenStream ts;

            ts = new WhitespaceTokenizer(new System.IO.StringReader(s));
            ts = new PayloadSetter(ts);
            VerifyPayload(ts);

            ts = new WhitespaceTokenizer(new System.IO.StringReader(s));
            ts = new PayloadSetter(ts);

            VerifyPayload(ts);
        }