How-Tos: Backend & Data
Databases, schema migrations, and OpenSearch.
- Configure the default Postgres schema with Spring and Flyway — set up the "data" schema for Postgres 15, Spring, Flyway and H2 consistently.
- Run database migrations as a separate deployment step — add the starter, add migration scripts, configure the migration mode, local dev fallback.
- Publish a database schema to the Architecture Repository automatically on startup.
- Use OpenSearch in a jEAP service:
- Add the OpenSearch client starter and search.
- Implement and register a custom IndexType.
- Expose a SearchItemsProvider endpoint for the jEAP OpenSearch Index Writer to call.
- Set up an OpenSearch Index Type Registry project end to end.
- Build and run an OpenSearch Index Writer Service instance.