我如何在 elasticsearch 中重新索引以使用 Nest api 5 从 elasticsearch 1.4 迁移到 elasticsearch 5
How can i do reindexing in elasticsearch to migrate from elastic search 1.4 to elasticsearch 5 using Nest api 5
我正在尝试使用 NEST 将数据从 Elasticsearch 1.4 迁移到 Elasticsearch 5 api 5.I 能够使用 curl 命令将一个索引从 ES 1.4 迁移到 ES 5 但因为我是新手对于 elasticsearch,我不知道如何使用 Nest api 5 做同样的事情,因为可供参考的示例非常少。
使用 Reindex from Remote API which is also exposed within NEST as ReindexOnServer()
应该可以做到这一点。
如果您需要对源进行任何详细查询,您可能需要使用 .Raw()
和查询 DSL JSON 字符串,具体取决于所讨论的查询结构是否在1.4 和 5.
我正在尝试使用 NEST 将数据从 Elasticsearch 1.4 迁移到 Elasticsearch 5 api 5.I 能够使用 curl 命令将一个索引从 ES 1.4 迁移到 ES 5 但因为我是新手对于 elasticsearch,我不知道如何使用 Nest api 5 做同样的事情,因为可供参考的示例非常少。
使用 Reindex from Remote API which is also exposed within NEST as ReindexOnServer()
应该可以做到这一点。
如果您需要对源进行任何详细查询,您可能需要使用 .Raw()
和查询 DSL JSON 字符串,具体取决于所讨论的查询结构是否在1.4 和 5.