I was hoping to try using KStem with Solr 1.3.0, but am having trouble getting it to compile.

With a fresh Solr 1.3.0 that will build successfully, I unzipped the KStemSolr.zip within the apache-solr-1.3.0 directory, but when I then try to build (using Ant 1.7.1 and Sun HotSpot JDK 1.6.0 update 10), I get:

[EMAIL PROTECTED]:/usr/local/build/apache-solr-1.3.0$ ant compile
Buildfile: build.xml

init-forrest-entities:
    [mkdir] Created dir: /usr/local/build/apache-solr-1.3.0/build
    [mkdir] Created dir: /usr/local/build/apache-solr-1.3.0/build/web

compile-common:
[mkdir] Created dir: /usr/local/build/apache-solr-1.3.0/build/ common
    [javac] Compiling 36 source files to
/usr/local/build/apache-solr-1.3.0/build/common
    [javac] Note:
/usr/local/build/apache-solr-1.3.0/src/java/org/apache/solr/common/ util/FastInputStream.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

compile:
    [mkdir] Created dir: /usr/local/build/apache-solr-1.3.0/build/core
    [javac] Compiling 350 source files to
/usr/local/build/apache-solr-1.3.0/build/core
    [javac]
/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]              ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/usr/local/build/apache-solr-1.3.0/build.xml:125: The following error
occurred while executing this line:
/usr/local/build/apache-solr-1.3.0/common-build.xml:149: Compile failed;
see the compiler error output for details.


I've also tried to build the KStem filter factory using the KStem.jar via the instructions on the Wiki, but I am not sure I'm doing the right things in steps 3 and 5:

3.  Modify the package name on the source files to match your install

Does that mean to change package org.apache.lucene.analysis; to org.apache.solr.analysis?

5.  Build the jar file and drop that into your Solr /lib directory.

Nothing I've tried here gives me any .class files, just more "cannot find symbol" errors.

Any suggestions would be much appreciated. I am definitely a novice in building Java apps, so I could be missing something very simple here. Thanks,

-Chris

Reply via email to