我使用 Lucene.NET3.0.3 如何获取 TermAttribute。我尽我所能,但我无法得到它
这里来源:
Analyzer analyzer = new Lucene.Net.Analysis.Snowball.SnowballAnalyzer(Lucene.Net.Util.Version.LUCENE_30, "English",stopword);
TokenStream tokenStream = analyzer.TokenStream("English", new StringReader("How to get TermAttribute"));
while (tokenStream.IncrementToken())
{
???How to get TermAttribute
}