DEV Community

tackme
tackme

Posted on

2 2

Azure Searchで取得したファセットのカウント数が実際のドキュメント数と異なる場合の対処法

Azure Searchで取得したファセットのカウント数と実際のドキュメントの数が異なっている現象に遭遇しました。

Azure Searchではシャーディングアーキテクチャが原因で不正確な値を返すことがあるようです。ファセット取得クエリで以下のようにcountに大きな値を渡すことで正確な値を取得できるようになります。

&facet=color,count:100
Enter fullscreen mode Exit fullscreen mode

ただしドキュメント数が多い場合はパフォーマンスが低下する可能性があるため注意が必要です。

参考

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more