目前我正在尝试
json.facet={
"category" : { "type": "terms", "field": "category" },
"initial_category" : { "type": "terms", "field": "category", domain: { excludeTags: "*"} }
}
但没有成功。
我需要initial_category
检索没有所有过滤器的存储桶。
完整的查询是
curl http://localhost:8983/solr/items/query -d '
q=name:phone&
fq={!tag=size}size:2XL&
rows=0&
json.facet={
"category" : { "type": "terms", "field": "category"},
"initial_category" : { "type": "terms", "field": "category", domain: { excludeTags: ""} }
}'
如何从构面中排除所有标签?