简体   繁体   English

Jhipster弹性搜索数据迁移

[英]Jhipster Elastic-search data migration

We are using jhipster generator for our new project. 我们正在为我们的新项目使用jhipster生成器。 to store data it we select Postgres as well as elasticsearch, all search operation will perform using elasticsearch. 为了存储数据我们选择Postgres以及elasticsearch,所有搜索操作都将使用elasticsearch执行。

when we start the application, It use liquibase to upload csv files and dump data into tables.we added number of csv file and made some change on liquibase configuration files as well, but the problem we found right now that it is only dumping csv data into Postgres only, we are not able to find data dump into elasticsearch. 当我们启动应用程序时,它使用liquibase上传csv文件并将数据转储到tables.we中添加了csv文件的数量并对liquibase配置文件进行了一些更改,但我们现在发现的问题是它只是转储csv数据只进入Postgres,我们无法在弹性搜索中找到数据转储。

I do some research and found this . 我做了一些研究,发现了这个 but still, I am struggling with implementation, any advice will be really helpful. 但是,我仍在努力实施,任何建议都会非常有帮助。

The JHipster Elasticsearch is indexing on every change over the REST resource. JHipster Elasticsearch正在对REST资源的每个更改进行索引。 See here . 看到这里 This means that all your data which you are inserting over liquibase is not getting indexed. 这意味着您通过liquibase插入的所有数据都没有被编入索引。 You can use the generator-jhipster-elasticsearch-reindexer to reindex data which is already in the db. 您可以使用generator-jhipster-elasticsearch-reindexer重新索引数据库中已有的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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