Hi ilay, Can you try ComplexPhrase-4.2.1.zip, it supposed to work with 4.2.
--- On Mon, 4/22/13, ilay raja <ilay....@gmail.com> wrote: > From: ilay raja <ilay....@gmail.com> > Subject: Re: ComplexPhraseQParserPlugin not working with solr 4.2 > To: solr-user@lucene.apache.org, solr-...@lucene.apache.org > Date: Monday, April 22, 2013, 12:30 PM > I was able to solve the previous > problem of not loading > COmplexPhraseQParserPlugin. Still I am able to run this > with > defType=complexphrase: > java.lang.NoSuchMethodError: > org.apache.solr.search.QueryParsing.getQueryParserDefaultOperator(Lorg/apache/solr/schema/IndexSchema;Ljava/lang/String;)Lorg/apache/lucene/queryparser/classic/QueryParser$Operator; > > Is there an issue with running ComplexPhraseQParserPLuging > (4.00 jar) > agaisnt solr 4.2 ? > > On Sat, Apr 20, 2013 at 10:30 PM, ilay raja <ilay....@gmail.com> > wrote: > > > 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 > > > > >