We're updating the issue view to help you get more done. 

@SpatialBridge in "contained" entity triggers exception at bootstrap

Description

We usually skip bridge creation for contained type. We should probably do the same for spatial bridges.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 Caused by: org.hibernate.search.exception.SearchException: HSEARCH000306: Index manager type is required to build a field bridge for coordinate in org.hibernate.search.spatial.Coordinates at org.hibernate.search.bridge.impl.BridgeFactory.buildFieldBridge(BridgeFactory.java:200) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.bridge.impl.BridgeFactory.buildFieldBridge(BridgeFactory.java:185) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.bindSpatialAnnotation(AnnotationMetadataProvider.java:812) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.checkForSpatial(AnnotationMetadataProvider.java:1649) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.initializeMemberLevelAnnotations(AnnotationMetadataProvider.java:1061) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.initializeClass(AnnotationMetadataProvider.java:599) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.doGetTypeMetadataFor(AnnotationMetadataProvider.java:192) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.engine.metadata.impl.AnnotationMetadataProvider.getTypeMetadataForContainedIn(AnnotationMetadataProvider.java:159) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:401) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.spi.SearchIntegratorBuilder.createNewFactoryState(SearchIntegratorBuilder.java:244) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:200) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:128) ~[hibernate-search-engine-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.boot(HibernateSearchSessionFactoryObserver.java:113) ~[hibernate-search-orm-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:79) ~[hibernate-search-orm-5.9.2.Final.jar:5.9.2.Final] at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:374) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final] at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final] at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:892) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]

Source: https://discourse.hibernate.org/t/index-manager-type-is-required/1357

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

5.6.5.Final
5.10.1.Final
5.9.2.Final

Priority

Major