On 15 mars 2011, at 18:24, Emmanuel Bernard wrote: > > On 15 mars 2011, at 16:43, Sanne Grinovero wrote: > >> I guess we should prevent the indexing of ids in secondary elements? > > If the associated element is an entity, it's perfectly valid to index its id > and query by it > > //return all books when the author's id is 2 > "author.id:2"
So if we find a way to support this use case and yours, let's go. BTW I agree we should at least not store the norm. Maybe something like that: //default to todays' behavior minus the norm @DocumentId(indexWhenEmbedded=@Field(...)) _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev