generator-jhipster-es-entity-reindexer
v1.0.5
Published
Generates code to reindex selected entities with Elasticsearch.
Downloads
11
Maintainers
Readme
generator-jhipster-es-entity-reindexer
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.
Introduction
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
Prerequisites
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
Installation
With NPM
To install this module:
npm install -g generator-jhipster-es-entity-reindexer
To update this module:
npm update -g generator-jhipster-es-entity-reindexer
With Yarn
To install this module:
yarn global add generator-jhipster-es-entity-reindexer
To update this module:
yarn global upgrade generator-jhipster-es-entity-reindexer
Usage
In your jhipster project folder run the following command.
yo jhipster-es-entity-reindexer
License
Apache-2.0 © Ebsan Uddin