Expose backends/indexes through the ORM mapper APIs
Description
Activity
Show:
Fixed
Details
Details
Assignee
Fabio Massimo Ercoli
Fabio Massimo ErcoliReporter
Yoann Rodière
Yoann RodièreComponents
Sprint
None
Fix versions
Priority
Created July 17, 2019 at 2:23 PM
Updated October 25, 2019 at 3:07 PM
Resolved September 26, 2019 at 11:31 AM
Currently you can't access the backend/index from the ORM mapper, which is a bit annoying since it prevents from accessing the Elasticsearch REST client, in particular.
Ideally, we should probably introduce a public API representing the mapping (
SearchMapping
) accessible through eitherSearch.mapping(entityManagerFactory)
orSearch.mapping(entityManager)
. Then we would declare inSearchMapping
agetBackend(String backendName)
method and agetIndexManager(String indexName)
method.The best candidate for implementing
SearchMapping
is probablyHibernateOrmMapping
.