0
저는 포터 줄기를 사용하여 lucene 7에 대한 도움을 찾고 있습니다. 나는 줄기를 내 작가에게 넘겨 줄 수있는 방법을 찾을 수 없다. 나는 이것을 아주 새롭기 때문에 tolkenising에 의해 이것을 할 수있는 방법이 있을지 모르지만 나는 줄기를 짤 수있는 파일이 많기 때문에 이것을 모두 할 수 있기를 바랬다.Lucene PorterStemming
public void indexWithUrls(String rootpath) throws IOException {
try {
Directory index = FSDirectory.open(INDEX_DIR2);
EnglishAnalyzer an = new EnglishAnalyzer();
IndexWriterConfig config = new IndexWriterConfig(an);
// our created analyser
config.setOpenMode(IndexWriterConfig.OpenMode.CREATE);
writer = new IndexWriter(index, config);
File f = new File(rootpath);
입력 해 주셔서 감사합니다. 문제가 해결되어 링크가 도움이됩니다. 다시 한 번 감사드립니다! – Patrick