You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by jayakeerthi s <ma...@gmail.com> on 2009/06/25 20:42:55 UTC

Empty results after merging index via IndexMergeTool

Hi All,


I am trying to merge two index using mergeindextool. The two index created
using solr1.4 and fine showing results .

Used the below cmd as per the
http://wiki.apache.org/solr/MergingSolrIndexes#head-feb9246bab59b54c0ba361d84981973976566c2a
to merge the two index

java -cp
C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\lib\lucene-core-2.9-dev.jar
C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\lib\lucene-misc-2.4.1.jar
org.apache.lucene.misc.IndexMergeTool
C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\core\data
C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\core1\data\index
C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\core2\data\index

After exeuting the above cmd got the result as
Merging...
Optimizing...
Done.

The core data folder contains the files " _0.cfs , segments.gen,segments_2 "
Once I chk the results from the merged data respose got as zero results no
documents found.

I am using lucene-core-2.9-dev.jar and lucene-misc-2.4.1.jar  files

Please help resolve the issue.

Thanks in advance
Jay

Re: Empty results after merging index via IndexMergeTool

Posted by Chris Hostetter <ho...@fucit.org>.
: java -cp
: C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\lib\lucene-core-2.9-dev.jar
: C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\lib\lucene-misc-2.4.1.jar
: org.apache.lucene.misc.IndexMergeTool
: C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\core\data
: C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\core1\data\index
: C:\jbdevstudio\jboss-eap\jboss-as\bin\Core\core2\data\index
	...
: The core data folder contains the files " _0.cfs , segments.gen,segments_2 "
: Once I chk the results from the merged data respose got as zero results no
: documents found.

You told the IndexMergeTool to merge into the core\data -- but solr 
(probably) expects the index to be in core\data\index.


-Hoss