Solr には、次のような文書構造があります (無関係なフィールドは除外されています)。
<field name="review_id" type="int" indexed="true" stored="true"/>
<field name="product_id" type="int" indexed="true" stored="true"/>
<field name="product_category" type="string" indexed="true" stored="true" multiValued="true"/>
ここの product_id は、1 対多の wrt review_id です
次のようにして、各カテゴリのレビューのファセット数を取得できます。
/select?q=*:*&rows=0&facet=true&facet.field=product_category
product_category でファセットを実行できるようにしたいのですが、review_id:s の数ではなく、個別の product_id:s の数を取得します。Solrでこれを行うことは可能ですか?