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 Cihat güzel <c....@gmail.com> on 2014/03/25 10:51:44 UTC

document migrate

hi all,

I have a test for document migrate. I followed this url:
https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api12Migratedocumentstoanothercollection

I am trying on solr- 4.6.1. I have two collection (collection1 and
collection2) and two shards. my collection1 has 33 document and collection2
has 14 doc. I tried a request as follow:
http://localhost:8983/solr/admin/collections?action=MIGRATE&collection=collection1&split.key=key1!&target.collection=collection2

The response is as follow:

<response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">0</int>
</lst>
<lst name="error">
<str name="msg">Unknown action: MIGRATE</str>
<int name="code">400</int>
</lst>
</response>

Why do solr response say "Unknown action: MIGRATE" ? What is my mistake?

Re: document migrate

Posted by Jan Høydahl <ja...@cominvent.com>.
> I think that we should add which version includes which parameters at
> Collections API wiki page. A new 'migrate' collection API to split all
> documents with a route key into another collection is introduced with Solr
> 4.7.0

Should not be necessary, since the top of every Confluence page reads "This Unreleased Guide Will Cover Apache Solr 4.8". What we perhaps could do is add some JS magic which opens a popup for new users (based on a cookie) with an informative text 

"This Solr reference guide targets the next yet unreleased version of Solr. To find the reference guide for a released version of Solr, please follow this link ....."

The old wiki was littered with version numbers all over the place. If people wants to know which versions support a given feature they can refer to CHANGES.

Jan

Re: document migrate

Posted by Furkan KAMACI <fu...@gmail.com>.
Hi;

I think that we should add which version includes which parameters at
Collections API wiki page. A new 'migrate' collection API to split all
documents with a route key into another collection is introduced with Solr
4.7.0

Thanks;
Furkan KAMACI


2014-03-25 11:51 GMT+02:00 Cihat güzel <c....@gmail.com>:

> hi all,
>
> I have a test for document migrate. I followed this url:
>
> https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api12Migratedocumentstoanothercollection
>
> I am trying on solr- 4.6.1. I have two collection (collection1 and
> collection2) and two shards. my collection1 has 33 document and collection2
> has 14 doc. I tried a request as follow:
>
> http://localhost:8983/solr/admin/collections?action=MIGRATE&collection=collection1&split.key=key1!&target.collection=collection2
>
> The response is as follow:
>
> <response>
> <lst name="responseHeader">
> <int name="status">400</int>
> <int name="QTime">0</int>
> </lst>
> <lst name="error">
> <str name="msg">Unknown action: MIGRATE</str>
> <int name="code">400</int>
> </lst>
> </response>
>
> Why do solr response say "Unknown action: MIGRATE" ? What is my mistake?
>

Re: document migrate

Posted by Jan Høydahl <ja...@cominvent.com>.
Migrate is new in Solr 4.7.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

25. mars 2014 kl. 10:51 skrev Cihat güzel <c....@gmail.com>:

> hi all,
> 
> I have a test for document migrate. I followed this url:
> https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api12Migratedocumentstoanothercollection
> 
> I am trying on solr- 4.6.1. I have two collection (collection1 and
> collection2) and two shards. my collection1 has 33 document and collection2
> has 14 doc. I tried a request as follow:
> http://localhost:8983/solr/admin/collections?action=MIGRATE&collection=collection1&split.key=key1!&target.collection=collection2
> 
> The response is as follow:
> 
> <response>
> <lst name="responseHeader">
> <int name="status">400</int>
> <int name="QTime">0</int>
> </lst>
> <lst name="error">
> <str name="msg">Unknown action: MIGRATE</str>
> <int name="code">400</int>
> </lst>
> </response>
> 
> Why do solr response say "Unknown action: MIGRATE" ? What is my mistake?