23 using System.Collections.Generic;
25 using System.Collections;
26 using Lucene.Net.Analysis;
29 namespace Lucene.Net.Analysis.CJK
46 [Obsolete(
"use GetDefaultStopSet() instead")]
public static String[] STOP_WORDS =
48 "a",
"and",
"are",
"as",
"at",
"be",
49 "but",
"by",
"for",
"if",
"in",
50 "into",
"is",
"it",
"no",
"not",
51 "of",
"on",
"or",
"s",
"such",
"t",
52 "that",
"the",
"their",
"then",
53 "there",
"these",
"they",
"this",
54 "to",
"was",
"will",
"with",
"",
64 public static ISet<string> GetDefaultStopSet()
66 return DefaultSetHolder.DEFAULT_STOP_SET;
69 private static class DefaultSetHolder
71 internal static ISet<string> DEFAULT_STOP_SET =
78 private ISet<string> stopTable;
80 private readonly
Version matchVersion;
85 : this(matchVersion, DefaultSetHolder.DEFAULT_STOP_SET)
93 this.matchVersion = matchVersion;
103 this.matchVersion = matchVersion;
120 private class SavedStreams
135 public override sealed
TokenStream ReusableTokenStream(String fieldName, TextReader reader)
138 SavedStreams streams = (SavedStreams) PreviousTokenStream;
141 streams =
new SavedStreams();
144 streams.source, stopTable);
145 PreviousTokenStream = streams;
149 streams.source.Reset(reader);
151 return streams.result;