title: solr - complex data structure
body: <p>I have the following data structure for creating index.
  user
    userid
    username
    userstatus
    friends
      friendid
      friendstatus
      friendcreateddate</p>
  
  <p>I think dynamic field wont work for me since I need to query based on specific field names.</p>
  
  <p>I have search based on friendstatus and friendcreateddate. Can someone advise me on best possible document structure? </p>