Hm, IIRC, it should put the child data in the parent. You might want to check ContainsIn
On Tue, Dec 23, 2008 at 10:52 AM, iacoware <[email protected]> wrote: > > Hello everyone, > I'm trying to use NHibernate.Search but I'm stuck on what seems a > major problem. NH.Search doesn't allow to embed in a lucene document > fields of associated entities with a relationship of 1-N (see > EmbeddedTests.TestIndexedEmbeddedAndCollections()) > Let me try to better explain my situation. Suppose we've a parent- > child relationship. > > ----------------- --------------- > | Parent | 1-----* | Child | > | -Number | | -Name | > ----------------- --------------- > > In that case tipically you want _one_ lucene document with fields from > _both_ entities (Parent & Child) so you can query Parent entities > using child fields (childs.Name). > How do you have solved that problem? Is there a workaround? I'm a > newbie to NH.Search and maybe I've overlooked something and maybe > there is a simpler solution. > > Thanks > Massimo > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
