legacy-knowledge-base
公開されました Jun. 30, 2025

APIを使用したクエリで返されるアイテムの数を変更する方法

written-by

Rodrigo Mier

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ヘッドレスAPIは、より高いページ・サイズが定義されている場合でも、クエリーごとに最大500アイテムしか返さない。

  • インスタンスごとにページサイズを定義する方法。

環境

  • Liferay DXP 7.4 四半期リリース

解像度

  • pagesizeパラメータを使用して、返すクエリー数を設定することが可能です。 そのインスタンスで許容される最大ページ・サイズを使用するには、パラメータを0または負の数に設定します。 以下に例を示します。
    • pagesize = -1

  • 各インスタンスで許可されるアイテムの最大数を定義することも可能です。 これは、コントロールパネル -> インスタンス設定 -> 仮想インスタンススコープ -> ページサイズ制限から設定できます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base