Skip to content

Ebsan/generator-jhipster-es-entity-reindexer

Repository files navigation

generator-jhipster-es-entity-reindexer

NPM version Build Status Dependency Status

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 in application.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

About

Generates code to reindex selected entities with Elasticsearch.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •