mikemccand / stargazers-migration-test

Testing Lucene's Jira -> GitHub issues migration
0 stars 0 forks source link

Cannot resolve classes from org.apache.lucene.core plugin and others [LUCENE-9000] #997

Closed mikemccand closed 5 years ago

mikemccand commented 5 years ago

we are consuming the org.apache.lucene.core plugin in our source code. Wherein we updated the org.apache.lucene.core version from  2.9.0 to 7.1.0 (supported by Photon). But doing that gives us the compilation error in below statements,   import org.apache.lucene.queryParser.ParseException; import org.apache.lucene.queryParser.QueryParser; import org.apache.lucene.search.Searcher;   Can you please let us know how to resolve these imports?     We took a look on the content and noticed that that class is not direct there We tried with Classis class  but even was not able to resolve it, We dont have issue with previous version (2.9.0)


Legacy Jira details

LUCENE-9000 by Rosa Casillas on Oct 04 2019, resolved Oct 05 2019 Environment:

DTP consume that org.apache.lucene.core plugin and trying to compile with the class got this error.
The compilation error for import of:- import org.apache.lucene.queryParser.ParseException; import org.apache.lucene.queryParser.QueryParser; import org.apache.lucene.search.Searcher;

 

 

 
mikemccand commented 5 years ago

As far as class imports, those lines should work with 7.1.0.

import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.queryparser.classic.QueryParser;
import org.apache.lucene.search.IndexSearcher;

 

Please refer the 7.1.0 Javdocs and post questions to mailing lists instead of opening issues, because this Jira isn't a help desk. https://lucene.apache.org/core/7_1_0/

https://lucene.apache.org/core/discussion.html

 

[Legacy Jira: Tomoko Uchida (@mocobeta) on Oct 05 2019]

mikemccand commented 5 years ago

The QueryParser of Lucene is (as documented) no longer part of lucene-core.jar file. Please add the queryparser module to your compile classpath.

[Legacy Jira: Uwe Schindler (@uschindler) on Oct 05 2019]