Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Solr からファセット カウントのみを返す必要があります。したがって、基本的にすべてのドキュメントを検索してファセット数を返したいのですが、検索結果を返したくありません。これは可能ですか?
ありがとう
設定facet=trueするとファセットが有効になり、設定rows=0すると結果が返されなくなります。便利なことに、numFound見つかった結果の数が表示されます。
facet=true
rows=0
numFound
明らかな解決策は、ワイルドカードを使用して検索し、ゼロの結果が返されるように指定することだと思います。
それがこれまでの私の解決策です。