Request to improve metadata_query limitation
Metadata queries Limitations
https://developer.box.com/guides/metadata/queries/limitations/
When sending a metadata query request for which the result set exceeds 2,000 items, the API can only guarantee that it returns all all matching results if both the following conditions are met.
1.The requesting user has at least Previewer permission to all items in the result set
2.The ancestor folder contains all of the files in the result set
With the above limitation, it is not possible to narrow down the search to metadata for a specific folder when the range of metadata assigned is wide.
Could it be improved so that the number of items in the result set is counted after taking into consideration the narrowing down of folders?
*Request is to remove the limitation of "2. The ancestor folder ~".
When sending a metadata query request for which the result set exceeds 2,000 items and for which these conditions are not true, the API might return error with a 4XX response code indicating that the query will need to be restricted to return fewer results.
Alternatively, could it be possible to relax the limit of 2,000 items, which is the number of result set items that could return the above error?
== in Japanese ==
metadata_queryの制限改善依頼
メタデータクエリー制限
https://ja.developer.box.com/guides/metadata/queries/limitations/
結果セットの項目数が2,000を超えるメタデータクエリリクエストを送信した場合、
APIは、以下の条件が両方とも満たされる場合に一致する結果をすべて返すことのみを保証できます。
1.リクエストするユーザーが、結果セットに含まれるすべての項目に対してプレビューアー以上の権限を持っていること。
2.先祖フォルダに、結果セット内のすべてのファイルが含まれていること。
上記制限では、メタデータの付与範囲が広い場合、特定フォルダのメタデータを絞り込んで検索を行うことが出来ません。
結果セットの項目数はフォルダの絞り込みを考慮した上でカウントされるよう改善できないでしょうか。
※要望としては「2.先祖フォルダに~」の制限撤廃
結果セットの項目数が2,000を超えており、上記の条件が当てはまらないメタデータクエリリクエストを送信すると、
APIは、返される結果が少なくなるようクエリを制限する必要があることを示すレスポンスコード4XXとともにエラーを返す可能性があります。
または、こちらのエラーを返す可能性のある結果セット項目数である2,000件の制限を緩和できないでしょうか。