Hi, This generally happens, if you have an older version of Lucene somewhere in your classpath. E.g., if older Lucene was placed outside of the webapp somewhere in the classpath of Websphere itself.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: Tamer Saleh [mailto:[email protected]] > Sent: Saturday, November 22, 2014 8:12 PM > To: [email protected] > Subject: Indexing Error > > Hi team, > > I have a run time error when running this code snippet on websphere > application server 8.5: > > Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_47); > IndexWriterConfig iW = new > IndexWriterConfig(Version.LUCENE_47,analyzer); > Directory index = new RAMDirectory(); > IndexWriter writer = new IndexWriter(index,iW); > > > The error is: > java.lang.nosuchfielderror: org/apache/lucene/util/version.lucene_47 > > Please help me out. > > Thanks in advance! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
