This formula is given for how a doc is routed to a shard.
shard_num = hash(_routing) % num_primary_shards
I would like to calculate this to recover a shard that was lost so i can reindex docs that were deleted along with it. I use php to update docs and this index I use my own id's, so I just need to know the hash I can use in php to do this.
Thanks
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.