Hello,

I saw same error. The cause of this problem is there are two lucene-analyzers*.jar
files in trunk.

$ find . -name "lucene-analyzers-*.jar"
./client/ruby/solr-ruby/solr/lib/lucene-analyzers-2.2-dev.jar
./lib/lucene-analyzers-2.2.0.jar

To eliminate error on eclipse, remove lucene-analyzers-2.2-dev.jar from your
build path.

Probably lucene-analyzers-2.2-dev.jar file should be removed from trunk.

regards,

Koji

Sundling, Paul wrote:
I checked out the latest solr source code from subversion and put it in
an eclipse project.  I used all the jars for the project (had to add
junit).  I get errors in eclipse about two constants not being defined
in one of the library jars:
(based on imports org.apache.lucene.analysis.ngram.EdgeNGramTokenizer)
EdgeNGramTokenizer.DEFAULT_MAX_GRAM_SIZE

and

EdgeNGramTokenizer.DEFAULT_MAX_GRAM_SIZE

are not defined.  So was a class changed that this Solr class depends
on?

The error happens in org.apache.solr.analysis.EdgeNGramTokenizerFactory:

maxGramSize = (maxArg != null ? Integer.parseInt(maxArg) :
EdgeNGramTokenizer.DEFAULT_MAX_GRAM_SIZE);

String minArg = args.get("minGramSize");

minGramSize = (minArg != null ? Integer.parseInt(minArg) :
EdgeNGramTokenizer.DEFAULT_MIN_GRAM_SIZE);

Am I doing something wrong?
Paul Sundling



Reply via email to