| Hi Michael Hum, good question. We're re-designing the whole DocumentBuilder to address several limitations for Hibernate Search 6, we could explore this idea as well. I'll talk about it with the team but keep in mind that we'll need to have a full definition of the schema at bootstrap, so there will be need for some limitation. For example I'm thinking we would only be able to include in the upfront-known definition the mapped entities from the domain model - not including other sub types. Even in this case I'm not sure if just guessing that all fields from all subtypes of an indexed type should be considered, people will likely want some more control on this. How would you see the mapping work best for your use case? |