Beginner |
|
Joined: Mon Aug 22, 2005 1:22 am Posts: 36
|
Need help on this one.
I have a date attribute on my object. I have it declared as the following:
@Temporal(TemporalType.DATE)
@Field( index = Index.UN_TOKENIZED )
private Calendar date;
However, when I index my object, I get the following exception:
INFO - Version - Hibernate Search 3.1.0.GA
INFO - Version - Hibernate Commons Annotations 3.1.0.GA
org.hibernate.HibernateException: could not init listeners
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:205)
at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1338)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at com.positiontech.hib.HibernateUtil.<clinit>(HibernateUtil.java:115)
at ReindexSearchItems.main(ReindexSearchItems.java:19)
Caused by: org.hibernate.search.SearchException: Unable to guess FieldBridge for date
at org.hibernate.search.bridge.BridgeFactory.guessType(BridgeFactory.java:183)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.bindFieldAnnotation(DocumentBuilderContainedEntity.java:465)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.checkForField(DocumentBuilderContainedEntity.java:323)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.initializeMemberLevelAnnotations(DocumentBuilderContainedEntity.java:204)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.initializeClass(DocumentBuilderContainedEntity.java:146)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.init(DocumentBuilderContainedEntity.java:106)
at org.hibernate.search.engine.DocumentBuilderIndexedEntity.init(DocumentBuilderIndexedEntity.java:147)
at org.hibernate.search.engine.DocumentBuilderContainedEntity.<init>(DocumentBuilderContainedEntity.java:93)
at org.hibernate.search.engine.DocumentBuilderIndexedEntity.<init>(DocumentBuilderIndexedEntity.java:128)
at org.hibernate.search.impl.SearchFactoryImpl.initDocumentBuilders(SearchFactoryImpl.java:409)
at org.hibernate.search.impl.SearchFactoryImpl.<init>(SearchFactoryImpl.java:119)
at org.hibernate.search.event.ContextHolder.getOrBuildSearchFactory(ContextHolder.java:30)
at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:59)
at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
Any thoughts on what the issue is? Did I declare the date value correct?
Thanks
- Doug
|
|