使用 SolrNet 进行查询和分面。我有一个我想分面的 int、tdate 和 string 字段的组合。但是,我无法在同一个查询中混合 SolrFacetFieldQuery 和 SolrFacetQuery(用于范围)和 SolrFacetDateQuery(用于日期范围)。我收到一个错误“没有找到隐式类型数组的最佳类型”。应该如何处理最好?显然不想发送多个查询来获取其他方面。
我知道这很愚蠢,但一直困扰着我......
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),
}
}
});