-
Type:
Task
-
Status: Resolved
-
Priority:
Trivial
-
Resolution: Duplicate
-
Affects Version/s: 2.9.1, 3.0
-
Fix Version/s: None
-
Component/s: modules/examples
-
Labels:
-
Lucene Fields:New
Found this issue when following the getting started tutorial with Lucene 3.0. It appears the QueryParser constructor was deprecated
The new code in results.jsp should be changed from:
new QueryParser("contents", analyzer)
to:
new QueryParser(Version.LUCENE_CURRENT, "contents", analyzer)