lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: Lucene 3.4.0 Merging
Date Sun, 02 Oct 2011 13:49:28 GMT
Ahsan, 

Maybe one or both of the Lucene jar files are not where your classpath says they are?  Try
copying them into the current directory, then adjusting the classpath entries, like so:

java -cp lucene-core-3.4.0.jar;lucene-misc-3.4.0.jar org/apache/lucene/misc/IndexMergeTool
./newindex ./app1/solr/data/index ./app2/solr/data/index

If that doesn't work, tell us about your environment: operating system, java version and vendor.

Steve

> -----Original Message-----
> From: Ahson Iqbal [mailto:mianahson@yahoo.com]
> Sent: Sunday, October 02, 2011 9:30 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Lucene 3.4.0 Merging
> 
> Hi Steve
> 
> Still same problem
> 
> Regards
> Ahsan
> 
>  ----- Original Message -----
> 
> From: Steven A Rowe <sarowe@syr.edu>
> To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Cc:
> Sent: Sunday, October 2, 2011 1:06 AM
> Subject: RE: Lucene 3.4.0 Merging
> 
> Ahsan,
> 
> You have one other problem: on windows, you should use ";" instead of ":"
> to separate the classpath entries - also, it's good to be in the habit of
> enclosing windows paths in quotation marks, in case one of the sub-
> directories has a space in its name:
> 
> java -cp "d:/lucene/lucene-core-3.4.0.jar;./contrib/misc/lucene-misc-
> 3.4.0.jar" org/apache/lucene/misc/IndexMergeTool ./newindex
> ./app1/solr/data/index ./app2/solr/data/index
> 
> Steve
> 
> > -----Original Message-----
> > From: Ahson Iqbal [mailto:mianahson@yahoo.com]
> > Sent: Saturday, October 01, 2011 12:51 PM
> > To: solr-user@lucene.apache.org
> > Subject: Re: Lucene 3.4.0 Merging
> >
> > Hi Steve
> >
> > Thank you very much for your valued response but adding space as you
> have
> > mentioned does not solve the problem.
> >
> > Regards
> > Ahsan
> >
> > ________________________________
> > From: Steven A Rowe <sarowe@syr.edu>
> > To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> > Sent: Friday, September 30, 2011 10:56 AM
> > Subject: RE: Lucene 3.4.0 Merging
> >
> > Hi Ahson,
> >
> > The wiki page you got your cmdline invocation from
> > <http://wiki.apache.org/solr/MergingSolrIndexes> was missing a space
> > character between the classpath and
> > "org/apache/lucene/misc/IndexMergeTool".  I've just updated that page.
> >
> > Steve
> >
> > > -----Original Message-----
> > > From: Ahson Iqbal [mailto:mianahson@yahoo.com]
> > > Sent: Friday, September 30, 2011 2:45 AM
> > > To: Solr Send Mail
> > > Subject: Lucene 3.4.0 Merging
> > >
> > > Hi
> > >
> > > I have 3 solr3.4.0 indexes i want to merge them, after searching on
> web
> > i
> > > found that there are two ways to do it as
> > >
> > > 1. Using Lucene Merge tool.
> > > 2. Merging through core admin
> > >
> > > i am using the 1st method for this i have downloaded lucene 3.4.0 and
> > > unpack it and then run following command on command prompt
> > >
> > >
> > > java -cp d:/lucene/lucene-core-3.4.0.jar:./contrib/misc/lucene-misc-
> > > 3.4.0.jarorg/apache/lucene/misc/IndexMergeTool ./newindex
> > > ./app1/solr/data/index ./app2/solr/data/indexbut unfortunately it
> gives
> > > me following exception
> > >
> > > Exception in thread "Main Thread" java.lang.NoClassDefFoundError:
> > >
> > > org/apache/lucene/misc/IndexMergeTool
> > >
> > >
> > > can any body guide me about this
> > >
> > > Regards
> > > Ahsan
Mime
View raw message