I am using hibernate search 4.5.0.
I am trying to optimise my indexing by reducing the amount of data indexed by using
Code:
@IndexedEmbedded(depth = 0, includePaths = {"id", "name"})
when only specific fields are required. Having implemented this in a few places, I find that @ContainedIn on the associated entity no longer updates the index of the parent entity. I have to increase the IndexedEmbedded depth to reach the association which defeats the purpose - because now it indexes all the fields which I was trying to avoid.
Do I not understand what includePaths is supposed to do, or is this a bug?
I have posted a fuller description at
http://stackoverflow.com/questions/21777710/using-containedin-and-includepaths