问题描述
此刻我正在尝试
[HttpGet]
但没有成功。
我需要json.facet={
"category" : { "type": "terms","field": "category" },"initial_category" : { "type": "terms","field": "category",domain: { excludeTags: "*"} }
}
来检索没有所有过滤器的存储桶。
完整的查询是
initial_category
如何从方面排除所有标签?
解决方法
尝试一下:
json.facet={
"category": {
"type": "terms","field": "category"
},"initial_category": {
"type": "terms","field": "category",domain: {
query: "*:*"
}
}
}
facet.domain.query允许在任意查询上运行构面,而与主域无关。
https://lucene.apache.org/solr/guide/8_0/json-faceting-domain-changes.html#arbitrary-domain-query