However - as far as I can see -, this method is needed to get access to the FieldBridges of the Fields of the original Entities.
You can get the FieldBridge via the public org.hibernate.search.metadata.FieldDescriptor. Access to this descriptors is via SearchFactoryIntegrator#getIndexedTypeDescriptor. Once you have an IndexedTypeDescriptor there are several ways to navigate it. Is this sufficient? If not, the way to go is to extend the public meta data API, not expose internal impl classes.
I need this information because I want to automatically transfer Lucene Documents back to a DTO and I don't want the user to have to specify the FieldBridge at two different locations for this feature.
I am not quite sure what you mean.
|