一.原索引
put my _ index { ' mappings ' : { ' _ doc ' : { ' properties ' : { ' create _ date ' : }数据
put my _ index2{ ' mappings ' : { ' _ doc ' : { ' properties ' : { ' create _ date ' : } tte }
post _ reindex { ' source ' : } ' index ' : ' my _ index ' }、' dest ' : { ' index ' : ' my _ index2' }
DELETE my_index五、设置别名
post/_ aliases { ' actions ' : [ { ' add ' : } ' index ' : ' my _ index2',' alias':'my_index'}
对于PUT my_index2,不会自动生成映射,必须自己手动创建映射。
先创建空索引:
PUT /my_index2{}重新创建映射:
post/SKU _ vec _ 32 _ sync2/_ doc/_ mapping? pretty include _ type _ name=true { ' _ doc ' : { ' properties ' : } ' vec ' : { ' type ' : ' dense _ vec
typescannotbeprovidedinputmappingrequests,unlesstheinclude _ type _ nameparameterissettotrue。