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 Patrick Kirsch <p-...@gmx.de> on 2012/10/08 08:32:50 UTC

solr 1.4.1 -> 3.6.1; SOLR-758

Regarding https://issues.apache.org/jira/browse/SOLR-758 (Enhance 
DisMaxQParserPlugin to support full-Solr syntax and to support alternate 
escaping strategies.)

I'm updating from solr 1.4.1 to 3.6.1 (I'm aware that it is not beautiful).
After applying the attached patches to 3.6.1 I'm experiencing this problem:
  - SEVERE: org.apache.solr.common.SolrException: Error Instantiating 
QParserPlugin, org.apache.solr.search.AdvancedQParserPlugin is not a 
org.apache.solr.search.QParserPlugin
         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:421)
         at 
org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:441)
         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1612)
         [...]
    These patches seems no valid anymore.

Which leads me to the more experienced users here:

- Although not directly mentioned in 
https://issues.apache.org/jira/browse/SOLR-758, is there any other (new) 
QParser which obsoletes the DisMax?

- Futhermore I tried to make the patches apply ("forward porting"), but 
always get the error "Error Instantiating QParserPlugin, 
org.apache.solr.search.AdvancedQParserPlugin is not a 
org.apache.solr.search.QParserPlugin", although the class dependency is 
linear:

./core/src/java/org/apache/solr/search/AdvancedQParserPlugin.java:
[...]
public class AdvancedQParserPlugin extends DisMaxQParserPlugin {
[...]

./core/src/java/org/apache/solr/search/DisMaxQParserPlugin.java:
[...]
public class DisMaxQParserPlugin extends QParserPlugin {
[...]


Thanks,
  Patrick

Re: solr 1.4.1 -> 3.6.1; SOLR-758

Posted by Jack Krupansky <ja...@basetechnology.com>.
The Extended Dismax query parser (edismax) mostly "obsoletes" Dismax except 
in the sense that some apps prefer the restricted syntax of Dismax:

http://wiki.apache.org/solr/ExtendedDisMax

-- Jack Krupansky

-----Original Message----- 
From: Patrick Kirsch
Sent: Monday, October 08, 2012 2:32 AM
To: solr-user@lucene.apache.org
Subject: solr 1.4.1 -> 3.6.1; SOLR-758

Regarding https://issues.apache.org/jira/browse/SOLR-758 (Enhance
DisMaxQParserPlugin to support full-Solr syntax and to support alternate
escaping strategies.)

I'm updating from solr 1.4.1 to 3.6.1 (I'm aware that it is not beautiful).
After applying the attached patches to 3.6.1 I'm experiencing this problem:
  - SEVERE: org.apache.solr.common.SolrException: Error Instantiating
QParserPlugin, org.apache.solr.search.AdvancedQParserPlugin is not a
org.apache.solr.search.QParserPlugin
         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:421)
         at
org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:441)
         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1612)
         [...]
    These patches seems no valid anymore.

Which leads me to the more experienced users here:

- Although not directly mentioned in
https://issues.apache.org/jira/browse/SOLR-758, is there any other (new)
QParser which obsoletes the DisMax?

- Futhermore I tried to make the patches apply ("forward porting"), but
always get the error "Error Instantiating QParserPlugin,
org.apache.solr.search.AdvancedQParserPlugin is not a
org.apache.solr.search.QParserPlugin", although the class dependency is
linear:

./core/src/java/org/apache/solr/search/AdvancedQParserPlugin.java:
[...]
public class AdvancedQParserPlugin extends DisMaxQParserPlugin {
[...]

./core/src/java/org/apache/solr/search/DisMaxQParserPlugin.java:
[...]
public class DisMaxQParserPlugin extends QParserPlugin {
[...]


Thanks,
  Patrick 


Re: solr 1.4.1 -> 3.6.1; SOLR-758

Posted by Chris Hostetter <ho...@fucit.org>.
: Regarding https://issues.apache.org/jira/browse/SOLR-758 (Enhance
: DisMaxQParserPlugin to support full-Solr syntax and to support alternate
: escaping strategies.)

FWIW: i'm not really sure what/how that issue relates to the problem you 
are seeing (or how you *think* it relates to hte problem you are seeing) 
... so i'm just going to focus on the specifics of your error... 

: After applying the attached patches to 3.6.1 I'm experiencing this problem:

The mailing list typically rejects patches - none came with your message.

:  - SEVERE: org.apache.solr.common.SolrException: Error Instantiating
: QParserPlugin, org.apache.solr.search.AdvancedQParserPlugin is not a
: org.apache.solr.search.QParserPlugin

Besides the obvious problem of not extending the expect class, the other 
posibility is that when compiling you "AdvancedQParserPlugin" you may be 
compailing against the wrong version of solr -- ie: you could get this 
error if the AdvancedQParserPlugin.class file you have was generated when 
your AdvancedQParserPlugin.java file was compiled against a different 
QParserPlugin.class then the one in use at runtime.



-Hoss