The tool would allow to export a Hibernate Search-generated mapping so that users may use it in scripts or compare it to their existing Elasticsearch mapping.
Work has been initiated as part of [https://hibernate.atlassian.net/browse/ HSEARCH-2260 |https://hibernate.atlassian.net/browse/HSEARCH-2260|smart-link] , but some major changes may be needed, so this will have to be part of a major release.
Work in progress available here: [https://github.com/yrodiere/hibernate-search/tree/HSEARCH-2366|https://github.com/yrodiere/hibernate-search/tree/HSEARCH-2366]
-The main issue was that such a tool should not have to connect to an Elasticsearch instance: we just want it to export the schema based on a configuration and a set of jars. Yet HSearch's metamodel creation and index manager creation/startup seem intertwined, and we cannot execute one without the other. So in order for the tool to exist, we need to bring some changes to HSearch's startup process.- -See there for more details about the issue:- [https://hibernate.atlassian.net/browse/HSEARCH-2260?focusedCommentId=84220&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-84220|https://hibernate.atlassian.net/browse/HSEARCH-2260?focusedCommentId=84220&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-84220] => This is no longer true in Hibernate Search 6; you can start it offline; see [https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#backend-elasticsearch-configuration-version|https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#backend-elasticsearch-configuration-version|smart-link] and [https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#mapper-orm-schema-management-strategy|https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#mapper-orm-schema-management-strategy|smart-link] |
|