title: How to specify multiple Spring Data Solr Facet Fields?
body: <p>According to the spring data solr docs, you can specify facet fields by either using annotations or using the Java API that solr data provides.  In the annotation, you can specify multiple facet fields as such: </p>
  
  <pre><code>@Facet(fields = { "clientCode", "state", "productCode"}, limit = 10, minCount= 1)
  </code></pre>
  
  <p>From the <a href="http://docs.spring.io/spring-data/solr/docs/1.2.0.RC1/reference/htmlsingle/" rel="nofollow noreferrer">documentation</a>:</p>
  
  <p>Example 2.6. </p>
  
  <pre><code>// produces: f.name.facet.prefix=spring
  FacetOptions options = new FacetOptions();
  options.addFacetOnField(new FieldWithFacetParameters("name").setPrefix("spring"));
  </code></pre>
  
  <p>How do I add multiple facets using FacetOptions? </p>
  
  <p>It looks like you can only add a single Facet to the query.</p>