Adobe Experience Manager: Query Builder APIで公開済みページを抽出する | Community
Skip to main content
Adobe Employee
April 19, 2023

Adobe Experience Manager: Query Builder APIで公開済みページを抽出する

  • April 19, 2023
  • 1 reply
  • 542 views

Note: This is a Japanese translation of an Adobe Experience League Knowledge Base article. Click this link for the original English version.

 

【目的】

Authorインスタンス上で、既に公開されたページの一覧を取得する方法を説明します。

 

【環境】

AEM as a Cloud Service、AEM 6.5

 

【対応方法】

Query Builder APIで、cq:lastReplicationActionプロパティがActivateのページを検索します。

 

 

クエリ

 

path=/content/wknd 1_property=sling:resourceType 1_property.value=wknd/components/page 2_property=cq:lastReplicationAction 2_property.value=Activate 3_daterange.property=cq:lastReplicated 3_daterange.lowerBound=2019-01-01T00:00:00.000+09:00 3_daterange.lowerOperation=>= orderby=path

 

クエリURL

http://localhost:4502/bin/querybuilder.json?1_property=sling%3aresourceType&1_property.value=wknd%2fcomponents%2fpage&2_property=cq%3alastReplicationAction&2_property.value=Activate&3_daterange.lowerBound=2019-01-01T00%3a00%3a00.000%2b09%3a00&3_daterange.lowerOperation=%3e%3d&3_daterange.property=cq%3alastReplicated&orderby=path&path=%2fcontent%2fwknd 

 

結果

 

{ "success": true, "results": 8, "total": 8, "more": false, "offset": 0, "hits": [ { "path": "/content/wknd/language-masters/en/magazine/arctic-surfing/jcr:content", "excerpt": "We traveled to Northern Norway to document the joy of surfing in extreme, but breathtakingly beautiful conditions.", "name": "jcr:content", "title": "Arctic Surfing", "lastModified": "2019-10-14 11:08:42", "created": "2023-04-10 21:56:45" }, { "path": "/content/wknd/language-masters/en/magazine/guide-la-skateparks/jcr:content", "excerpt": "Breaking down the top skate destinations in all of Los Angeles. You don't want to miss this!", "name": "jcr:content", "title": "Ultimate Guide to LA Skateparks", "lastModified": "2020-10-01 09:37:33", "created": "2023-04-10 21:56:47" }, ... ] }

 

配下のページ数が多いコンテンツパスを指定して検索すると、パフォーマンスに影響する恐れがあります。
一度のクエリ実行で全部取得するのではなく、パスを絞り込み複数回に分けて実行することをお勧めします。


<留意事項>
・上記は以下記事の抄訳/翻訳となります。
KB記事タイトル(英語). Adobe Experience Manager: Listing up published pages with Query Builder API, April 17, 2023, https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-21884.html (参照 2023-04-19).
・本記事にいただいたコメントへの返信はお約束できません。あらかじめご了承ください。

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Nandheswara
Level 4
April 22, 2023