tags:

views:

13

answers:

1

I want to do a query with two facets with SolrNet, City And Category. But each facet has diferrent properties. For example mincount for city is zero and for category is 1.

How can I do this with SolrNet?

I know FacetParametes has Queries property that can be an array of queries, but what about mincount?

Thanks.

A: 
solr.Query("something", new QueryOptions {
    Facet = new FacetParameters {
        Queries = new[] {
            new SolrFacetFieldQuery("city") { MinCount = 0 },
            new SolrFacetFieldQuery("category") { MinCount = 1 },
        }
    }
});
Mauricio Scheffer