Thank you very much Arjen. I had to separately download and install the jar. it was not present in my lucene installation directory. I had downloaded the lucene zip file and ran the command "ant" after extracting it. Did i miss anything.?
On Mon, Mar 25, 2013 at 1:22 PM, Arjen van der Meijden < [email protected]> wrote: > Hi Guarav, > > There is a package 'lucene-analyzers-common-$**version.jar' which > contains the analyzers. So you should add that to your project. > > Best regards, > > Arjen > > > On 25-3-2013 8:41, gaurav redkar wrote: > >> Hi all, >> >> I am trying to write simple program to add documents to index. But am >> unable to do so. The class StandardAnalyzer is not defined. >> >> Analyzer analyzer = new StandardAnalyzer(Version.**LUCENE_CURRENT); >> >> Any suggestions as to how to fix it.? >> >> Thanks, >> Gaurav >> >> > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > java-user-unsubscribe@lucene.**apache.org<[email protected]> > For additional commands, e-mail: > [email protected].**org<[email protected]> > >
