You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ilay raja <il...@gmail.com> on 2013/04/20 19:00:19 UTC

ComplexPhraseQParserPlugin not working with solr 4.2

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

Re: ComplexPhraseQParserPlugin not working with solr 4.2

Posted by Ahmet Arslan <io...@yahoo.com>.
Hi ilay,

Can you try ComplexPhrase-4.2.1.zip, it supposed to work with 4.2.


--- On Mon, 4/22/13, ilay raja <il...@gmail.com> wrote:

> From: ilay raja <il...@gmail.com>
> Subject: Re: ComplexPhraseQParserPlugin not working with solr 4.2
> To: solr-user@lucene.apache.org, solr-dev@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 <il...@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
> >
> >
> 

Re: ComplexPhraseQParserPlugin not working with solr 4.2

Posted by ilay raja <il...@gmail.com>.
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 <il...@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
>
>

Re: ComplexPhraseQParserPlugin not working with solr 4.2

Posted by ilay raja <il...@gmail.com>.
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 <il...@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
>
>

Re: ComplexPhraseQParserPlugin not working with solr 4.2

Posted by Ahmet Arslan <io...@yahoo.com>.
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 <il...@gmail.com> wrote:

> From: ilay raja <il...@gmail.com>
> Subject: ComplexPhraseQParserPlugin not working with solr 4.2
> To: solr-user@lucene.apache.org, solr-dev@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
>