I'm using lucene-core-2.4-dev.jar from the Solr 1.3.0 distribution.
Solr doesn't include lucene-misc, so I used lucene-misc-2.4.jar from
the Lucene 2.4.0 distribution.

But I had the exact same problem when I wrote my own index merge tool
using just the Solr distribution jars.

-Stuart Sierra


On Wed, Feb 18, 2009 at 10:20 AM, Erik Hatcher
<e...@ehatchersolutions.com> wrote:
> Are you sure you're using the Lucene JARs (both core and misc) that came
> with Solr 1.3 and not, as you said, the ones from a Lucene 2.4 distribution?
>
>        Erik
>
> On Feb 18, 2009, at 10:17 AM, Stuart Sierra wrote:
>
>> Hello,
>> I'm having trouble merging indexes with with IndexMergeTool.
>>
>> I use Solr 1.3 to build two separate indexes.  Then I shut down Solr.
>> The indexes generated by Solr look ok.  I can read them with a Lucene
>> IndexSearcher, and even open up the index files and see the text of my
>> documents.
>>
>> Next I run IndexMergeTool from Lucene 2.4, following the instructions at
>> <http://wiki.apache.org/solr/MergingSolrIndexes>
>>
>> After I run IndexMergeTool, the "merged" index is empty.  The
>> directory is created, it has a segments file like a normal Lucene
>> index, the index just doesn't have any documents in it.
>>
>> Any suggestions?
>>
>> -Stuart Sierra
>
>

Reply via email to