JHipster module, Generates code to reindex selected entities with Elasticsearch. You may also set your app to reindex all entities on startup. This module is an updated version of Elasticsearch Reindexer for Jhipster 7.
This JHipster module will generate code to reindex all entities with Elasticsearch. It will generate the following files:
- ElasticsearchIndexService.java - Reindex all or specifically selected entities. Can also reindex all entities on startup if
application.elasticsearch.reindex-on-startup
is set to true inapplication.yml
. - ElasticsearchIndexResource.java - Admin only REST endpoint to reindex all or specifically selected entities.
- ApplicationProperties.java - Adds the
application.elasticsearch.reindex-on-startup
to ApplicationProperties. - application.yml - Adds
application.elasticsearch.reindex-on-startup
to end of file. - Frontend code:
- Navigation element to Admin dropdown
- Admin page to select all or specific entities to reindex
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
To install this module:
npm install -g generator-jhipster-es-entity-reindexer
To update this module:
npm update -g generator-jhipster-es-entity-reindexer
To install this module:
yarn global add generator-jhipster-es-entity-reindexer
To update this module:
yarn global upgrade generator-jhipster-es-entity-reindexer
In your jhipster project folder run the following command.
yo jhipster-es-entity-reindexer
Apache-2.0 © Ebsan Uddin