简体   繁体   中英

Is it possible, in Elasticsearch, to do a temporary POST to an index?

我想知道是否可以将文档临时保存到索引中,当我想真正完全发布/发布此文档时,我可以将“临时”/“试运行”标志从文档中移除吗?

There is no out the box way do it but this is how I would do it :

  1. You can create a new index , to store the temporary documents.
  2. Create an alias that covers both the temp index and the existing index, this will allow you to test your query locally.

  3. when you are ready to "Release" the document copy it the "Real" index, and if it's many document use the reindex API from the temp index to the "real" one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM