Reputation: 41
Have a collection c1 that has 400,000 documents and c2 with no documents (new collection).
No routing key is specified in either collection.
Trying to use the migrate Collections API endpoint found/described in the documentation.
Since no routing key is specified I'm not sure what to use for the split.key
parameter. I have found this thread that mentions that a split.key=!
should encompass all documents. This has not proven true in my tests.
Here is my attempted url: http://solr.node:8983/solr/admin/collections?action=MIGRATE&collection=c1&split.key=!&target.collection=c2&async=1
This has not worked, and I have tried many iterations of the split.key
parameter with no avail. Have tried blank, a!
, id!
, id
, compositeId
and none of them have migrated any documents to the c2 collection.
How does the Migrate function work with no specified routing key? Is there a default value to use to grab all documents that will actually work?
Thank you!
Edit: since no routing key was specified the current router is compositeId
as solr does that when it is not specified.
Upvotes: 4
Views: 463
Reputation: 1
I have the same question with you. I would like to get the answer too. I only get some answer from SOLR guide.
split.key The routing key prefix. For example, if the uniqueKey of a document is "a!123", then you would use split.key=a!. This parameter is required. reference: https://solr.apache.org/guide/8_6/collection-management.html
Upvotes: 0