title: solrj: how to store and retrieve List<POJO> via multivalued field in index
body: <p>My use case is an index which holds titles of online media.  The provider of the data associates a list of categories with each title.   I am using SolrJ to populate the index via an annotated POJO class</p>
  
  <p>e.g. </p>
  
  <pre><code>@Field("title")
  private String title;
  
  @Field("categories")
  private List&lt;Category&gt; categoryList;
  </code></pre>
  
  <p>The associated POJO is</p>
  
  <pre><code>public class Category {
      private Long id;
      private String name;
  ...
  </code></pre>
  
  <p>}</p>
  
  <p>My question has two parts:</p>
  
  <p>a) is this possible via SolrJ - the docs only contain an example of @Field using a List of String, so I assume the serialization/marshalling only supports simple types ?</p>
  
  <p>b) how would I set up the schema to hold this.  I have a naive assumption I just need to set
  multiValued=true on the required field &amp; it will all work by magic.</p>
  
  <p>I'm just starting to implement this so any response would be highly appreciated.</p>