lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Wildcard search in phrase query using spanquery
Date Tue, 20 Apr 2010 14:17:28 GMT

> I tried that and got the following result. Do I have to do
> anything other
> than the mentioned instructions to make it work?
> 
> HTTP ERROR: 500
> 
> tried to access field
> org.apache.lucene.queryParser.QueryParser.field from
> class
> org.apache.lucene.queryParser.ComplexPhraseQueryParser$ComplexPhraseQuery
> 
> java.lang.IllegalAccessError: tried to access field
> org.apache.lucene.queryParser.QueryParser.field from class
> org.apache.lucene.queryParser.ComplexPhraseQueryParser$ComplexPhraseQuery

I have never noticed this since i am using this class with custom super class. Thanks for
it. 

It seems that the reason:

"A class loaded by one classloader can't
access package-visible members in a class loaded by a different
classloader even if they are nominally in the same package." [1]

[1]http://www.pubbs.net/grails/200911/37981/

I think easiest thing to do is to place ComplexPhrase-1.0.jar (created by mvn package) under
apache-solr-1.4.0\lib directory. 
And create a new apache-solr-1.4.0\dist\apache-solr-1.4.1-dev.war 
by invoking "ant dist" . I tested this solution and it works as a workaround.  

It would be great if you give us feedback after using it.


      

Mime
View raw message