Are you sure the ComplexPhrase parser supports your version of solr?
On Thu, Aug 29, 2013 at 12:09 PM, elfu <el...@yahoo.com> wrote: > Hi, > > i am a beginner and i try to use EmbededSolrServer with ComplexPhrase > plugin ... > > i create bin/lib folder in solrhome and copy the ComplexPhrase.jar inside > > i modify the solrconfig.xml > added > > <lib dir="../bin/lib" regex=".*\.jar" /> > > and > > <queryParser name="complexphrase" > class="org.apache.solr.search.ComplexPhraseQParserPlugin"/> > > > when i try to execute the complexphrasequery .... > > java.lang.IllegalAccessError: tried to access field > org.apache.lucene.queryparser.classic.QueryParserBase.field from class > org.apache.lucene.queryparser.classic.ComplexPhraseQueryParser$ComplexPhraseQuery > at > org.apache.lucene.queryparser.classic.ComplexPhraseQueryParser$ComplexPhraseQuery.parsePhraseElements(ComplexPhraseQueryParser.java:233) > at > org.apache.lucene.queryparser.classic.ComplexPhraseQueryParser.parse(ComplexPhraseQueryParser.java:118) > at > org.apache.solr.search.ComplexPhraseQParser.parse(ComplexPhraseQParserPlugin.java:108) > at org.apache.solr.search.QParser.getQuery(QParser.java:142) > at > org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:117) > at > org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:187) > at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1820) > at > org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:150) > at > org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:90) > at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301) > > > What is wrong? ( classloaders ? ) > > Thanks, > Elf