Hi ilay, You cannot load this plugin via lib directives. e.g. You need to embbed this jar into solar.war file. (by unzip and zip)
There should be a ReadMe file inside the latest attachment in Jira. -- On Sat, 4/20/13, ilay raja <ilay....@gmail.com> wrote: > From: ilay raja <ilay....@gmail.com> > Subject: ComplexPhraseQParserPlugin not working with solr 4.2 > To: solr-user@lucene.apache.org, solr-...@lucene.apache.org > Date: Saturday, April 20, 2013, 8:00 PM > Hi > > I followed the steps given in > https://issues.apache.org/jira/browse/SOLR-1604 for > integrating the plugin. > But is not picking up the classpath correctly. Though added > the following > lines to solrconfig.xml > <lib dir="../../../dist/" regex="ComplexPhrase-\d.*\.jar" > /> > <queryParser name="complexphrase" > class="org.apache.solr.search.ComplexPhraseQParserPlugin" > /> > > I have the compiled jar in solr-home/dist/ > > The exception is as below - unable to create core > mainindex. > Is it an issue with using this plugin in 4.2? Does it work > with 4.0 ? > > > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > at > java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at > org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629) > at > org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634) > at > org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051) > at > org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:1021) > at > org.apache.solr.core.SolrCore.<init>(SolrCore.java:619) > at > org.apache.solr.core.SolrCore.<init>(SolrCore.java:806) > org.apache.solr.common.SolrException: Error loading class > 'org.apache.solr.search.ComplexPhraseQParserPlugin' > SEVERE: Unable to create core: mainindex >