Using SolrNet for Queries and Cutting. I have a combination of int, tdate, and string fields that I would like to use. However, I cannot mix SolrFacetFieldQuery and SolrFacetQuery (for ranges) and SolrFacetDateQuery (for date ranges) in the same query. I get the error message "best type not found for implicitly typed array". What should be done best? It is clear that you do not want to send multiple requests to get other faces.
I know this is something stupid, but it annoyed me ....
results = solr.Query(qry
, new QueryOptions
{
Rows = 250,
Facet = new FacetParameters
{
Queries = new[]
{
new SolrFacetFieldQuery("Registry"),
new SolrFacetFieldQuery("Status"),
new SolrFacetFieldQuery("Type"),
//this is where it throws up "no best type found for implicty typed array"
new SolrFacetQuery(lessThan25),
}
}
});
source
share