Hibernate Search 3.0.0.GA
I'm indexing an entity that contains a map of other entities. I'm using @IndexedEmbedded to index the other entities as part of the top-level entity. However, I do not want to index the other entities otherwise. (They hold extra attribute values that the user can add to the top-level entity. They have no use independent of that entity. Plus, there'll be a lot of them and I don't want to index them twice.)
This works fine when I create the top-level entity with its associated other entities. However, if I update one of the other entities, the index is not updated. I tried adding @ContainedIn to the other entities (properly speaking, to the property that references the top-level entity), but that works only if they're also marked @Indexed, which I don't want.
Is there any way I can mark something @Indexed without actually indexing it? Any other suggestions? Thanks in advance.
|