Fri, 17 May 2013 10:06:11 -0700 Post Comments
: 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.