lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: ERROR help me please ,org.apache.lucene.search.IndexSearcher.<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.


-Hoss

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message