I'm using build 960 and trying to create a multi map (other classes' properties are involved but not displayed here for the sake of simplicity), which should index nested properties within the Person class.Â
  Class Person
  {
   String name;
   Address personAddress;
  }Â
  Class Address
  {
   String streetName;
   int streetNumber;
  }
In the above example, I would like to index the person's name and street number;
Now, I do realize that Raven doesn't let you index nested properties but that's why I came up with the idea to create a function (by using reflection) which returns an array of the properties which I want to index and their value:
object[] GetProperties(object myObj)
{...}
My problem occurs when running this following part of code, which was taken from raven's documentation. The code doesn't actually index my data and actually returns no results when trying to query for the terms, which do reside inside the object array that GetProperties returns.
  public class SearchIndex : AbstractMultiMapIndexCreationTask<SearchIndex.Result>Â
  {
    public class Result
    {
      public object[] Content { get; set; }
    }
    public SearchIndex()
    {
Â
      AddMap<Page>(items => from x in items
               select new Result { Content = x.GetProperties(x) } );
Â
      Index(x => x.Content, FieldIndexing.Analyzed);
    }
  }
Is dynamic assignment for the Content variable not supported ?
Help will be much appreciated !
Nir