: /usr/local/build/apache-solr-1.3.0/src/java/org/apache/solr/analysis/
: KStemFilterFactory.java:63:
: cannot find symbol
:     [javac] symbol  : method
: init(org.apache
: .solr.core.SolrConfig,java.util.Map<java.lang.String,java.lang.String>)
:     [javac] location: class org.apache.solr.analysis.BaseTokenFilterFactory
:     [javac]         super.init(solrConfig, args);
:     [javac]              ^

that KStemFilterFactory seems to be trying to use a method that existed 
for a while on the trunk, but was never released.

i'm not familiary with KStemFilterFactory to know why/if it needs a 
SolrConfig, but a few things you can try...

1) if there are no references to solrConfig anywhere except the init 
method (and the super.init method it calls) just remove the refrences to 
it (so the methods just deal with the Map)

2) if there are other refrences to the solrConfig, they *may* just be to 
take advantage of ResourceLoader methods, so after making the changes 
above, make KStemFilterFactory "implements ResourceLoaderAware" and then 
add a method like this...

  public void inform(ResourceLoader loader) {
        // code that used solrConfig should go here, but use loader
  }

...it will get called after the init(Map<String,String>) method and let 
KStemmFilterFactory get access to files on disk.

3) if that doesn't work ... i don't know what else to try (i'd need to get 
a lot more familiar with KStem to guess)



-Hoss

Reply via email to