我已下载最新的Lucene 4.6.0并在netbeans中运行它.
Lucence 3.6.x版本运行正常,但最新版本无法找到,org.apache.lucene.analysis.standard.StandardAnalyzer并IndexFiles.java在行中显示错误:
Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_40);
Run Code Online (Sandbox Code Playgroud)
错误是:
java.lang.ExceptionInInitializerError
Caused by: java.lang.RuntimeException: Uncompilable source code - package
org.apache.lucene.analysis.standard does not exist
at org.apache.lucene.demo.IndexFiles.<clinit>(IndexFiles.java:21)
Exception in thread "main" Java Result: 1
Run Code Online (Sandbox Code Playgroud)
其实我standard在最新版本中找不到任何文件夹.
有人可以帮帮我吗?