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 Mark Fletcher <ma...@gmail.com> on 2010/03/05 02:24:12 UTC
merge indexes command
Hi,
Can someone pls suggest how to use this command as a part of linux script:
*
http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index
*
Will just adding *curl* at the beginning help..
I tried this but it gives err:-
*Missing required parameter: core*
**
Any help is deeply appreciated.
Thanks and Rgds,
Mark.
Re: merge indexes command
Posted by Lance Norskog <go...@gmail.com>.
Add quotes around the URL string:
curl 'http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index'
On Thu, Mar 4, 2010 at 5:24 PM, Mark Fletcher
<ma...@gmail.com> wrote:
> Hi,
>
> Can someone pls suggest how to use this command as a part of linux script:
>
> *
> http://localhost:8983/solr/admin/cores?action=mergeindexes&core=core0&indexDir=/opt/solr/core1/data/index&indexDir=/opt/solr/core2/data/index
> *
> Will just adding *curl* at the beginning help..
>
> I tried this but it gives err:-
> *Missing required parameter: core*
> **
> Any help is deeply appreciated.
>
> Thanks and Rgds,
> Mark.
>
--
Lance Norskog
goksron@gmail.com