Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HSEARCH-2366 (
https://hibernate.atlassian.net/browse/HSEARCH-2366?atlOrigin=eyJpIjoiMjU...
)
Re: Add an Elasticsearch mapping export tool (
https://hibernate.atlassian.net/browse/HSEARCH-2366?atlOrigin=eyJpIjoiMjU...
)
Idea for the API:
* Require starting Hibernate Search, which can be done offline, see
https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_singl...
(
https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_singl...
) and
https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_singl...
(
https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_singl...
)
* Add the feature to the schema manager
E.g. we’d add methods such as this one to the schema manager:
void exportSchema(Path targetDirectory);
And calling such methods would result in the creation of files in the given directory,
with a predictable directory structure:
backend/indexes/MyEntity/index.json
backends/someNamedBackend/indexes/Foo/index.json
Of course the content of the export would be backend-specific; for Lucene, it would just
do nothing (or maybe create the directory structure but leave a file for each index whose
content says “the Lucene backend does not support exporting the schema”).
Later we might add more options (filtering, …) and features (export curl scripts, …), but
let’s wait a bit before working on that: exporting json should be enough for most people.
(
https://hibernate.atlassian.net/browse/HSEARCH-2366#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-2366#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100217- sha1:58f696e )