lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: ERROR help me please ,<init>(Ljava/lang/String;)V
Date Fri, 17 May 2013 17:05:14 GMT

: Well IndexSearcher doesn't have a constructor that accepts a string,
: maybe you should pass in an indexreader instead?

speciically: the code you are trying to run was compiled against a version 
of lucene in which the IndexSearcher class had a constructor that accepted 
a single string argument -- but at runtime, the classpath you are using 
contains a compiled version of the IndexSearcher class where that 
constructor does not exist.

the likely sitaution is that your code was compiled with an older version 
of lucene (once upone a time IndexSearcher had a constructor that took a 
String argument) and you are now running that code against a newer version 
of lucene.  Alternatively: it's possible you have many versions of lucene 
in your classpath, and the JVM is getting confused.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message