【发布时间】:2014-02-21 21:32:14
【问题描述】:
我正在寻求有关如何在 Lucene 4.0 中使用 PorterStemFilter 类的帮助。下面是我的索引器取自http://www.lucenetutorial.com/lucene-in-5-minutes.html:
...
StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_40);
Directory index = new RAMDirectory();
IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_40, analyzer);
IndexWriter w = new IndexWriter(index, config);
addDoc(w, "Lucene in Action", "193398817");
addDoc(w, "Lucene for Dummies", "55320055Z");
......
有人可以帮助我了解在哪里以及如何使用 PorterStemFilter 类
【问题讨论】:
标签: lucene indexing stemming porter-stemmer