moveToPrimary()


(BARNEY) #1

Correct me if I am wrong,I changed the particular shard to primary(set
primary=true) using moveToPrimary() method using master java API.
Is this the right way of doing?
Why I am asking bcz in mobz its not showing that particular shard has
been changed to primary But I printed using master java API its
showing changed.

Thanks !!


(Shay Banon) #2

Thats quite an internal API, and requires more work to move a shard to
primary (like publishing a new cluster state, and de-allocating other
shards - this does not happen in elasticsearch when all shards are
allocated).

On Sat, Dec 10, 2011 at 4:35 PM, BARNEY kalyanc007@gmail.com wrote:

Correct me if I am wrong,I changed the particular shard to primary(set
primary=true) using moveToPrimary() method using master java API.
Is this the right way of doing?
Why I am asking bcz in mobz its not showing that particular shard has
been changed to primary But I printed using master java API its
showing changed.

Thanks !!


(system) #3