What is the purpose of the '_reindex' API in Elasticsearch?
-
A
To rebuild the inverted index from raw data
-
B
To copy documents from one index to another, optionally transforming them
-
C
To reset shard assignments to default values
-
D
To regenerate the cluster state metadata