Hello, I am using Solr and SolrNet for some simple scenarios in an ASP.NET MVC application. For one to one mappings, where I am mapping a single POCO to a document, everything works very smoothly. However, I'm wondering if it is possible to map more complex scenarios like the following. Essentially I have an Auction class which contains a child AuctionItem
public class Auction
{
public virtual int ID { get; set; }
public virtual string Name { get; set; }
public virtual AuctionItem {get;set;}
public virtual DateTime StartDate { get; set; }
public virtual DateTime EndDate { get; set; }
}
public class AuctionItem
{
public virtual int ID { get; set; }
public virtual string ItemName{ get; set; }
public virtual string ItemDescription{ get; set; }
public virtual Double ItemPrice{get;set;}
}
Obviously I can map the Auction Item with attributes in my code, but I'm wondering how I can include, say, ItemName/ItemDescription/ItemPrice in my Solr document. Obviously the hope here is not to flatten my object graph. Is there a way to achieve this?