The old constants are still working in later versions. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de
> -----Original Message----- > From: Robert Nikander [mailto:rob.nikan...@gmail.com] > Sent: Saturday, November 22, 2014 8:36 PM > To: java-user@lucene.apache.org > Subject: Re: Indexing Error > > Looks like the version of Lucene on your runtime classpath is not the same as > the one you compiled against. In some recent version they changed the > naming convention in those fields. You may want: ‘LUCENE_4_7_0’. > > https://lucene.apache.org/core/4_10_2/core/org/apache/lucene/util/Versio > n.html > <https://lucene.apache.org/core/4_10_2/core/org/apache/lucene/util/Versi > on.html> > > Rob > > > > On Nov 22, 2014, at 2:12 PM, Tamer Saleh > <tamer.sa...@yahoo.com.INVALID> wrote: > > > > 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: java-user-unsubscr...@lucene.apache.org > > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org