[英]Solr - multiple facet.field in query
I would like to add multiple facet.field (and also facet.count and other properties) to my Map to be used in SolrParams in a query but it only let you add one value per key (Java Map). 我想向查询中的SolrParams中使用的Map中添加多个facet.field(以及facet.count和其他属性),但它只允许您为每个键(Java Map)添加一个值。
Can this be done? 能做到吗?
Something like: 就像是:
Map params = new Map();
params.put("facet.field", "title");
params.put("facet.field", "tags");
...
query(new SolrParams(params));
try this way 尝试这种方式
solrQuery.addFacetField(“subcat”)
solrQuery.addFacetField(“tags”)
solrQuery.addFacetField(“languages”)
Check the link for your reference Solr-using-Solr4J-in-Java . 检查链接以获取参考Solr-using-Solr4J-in-Java 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.