コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Bullk edit crawlability of pdf's in AEM

Avatar

Level 1

Hi

 

Is there a way to bulk edit a few hundreds of pdfs - we want search engine bots not to crawl them but still searchable in internal search. But instead of doing it manually, is there a way we can bulk edit them in cUrl or any other easy way?

 

Thanks

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

You can use Assets API if you want to update metadata using server scripts. Sample Command to update title.

Request: PUT /api/assets/myfolder/myAsset.png -H"Content-Type: application/json" -d '{"class":"asset", "properties":{"jcr:title":"My Asset"}}'

Link : https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?l...

You can also use CSV file to do update of Asset metadata using Metadata Import in AEM.
https://experienceleague.adobe.com/docs/experience-manager-65/assets/using/metadata.html?lang=en#imp...

Please disable launchers/processing profiles while running scripts to avoid changing of lastModified property of asset and overload on AEM.

 

元の投稿で解決策を見る

2 返信

Avatar

正解者
Community Advisor

You can use Assets API if you want to update metadata using server scripts. Sample Command to update title.

Request: PUT /api/assets/myfolder/myAsset.png -H"Content-Type: application/json" -d '{"class":"asset", "properties":{"jcr:title":"My Asset"}}'

Link : https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?l...

You can also use CSV file to do update of Asset metadata using Metadata Import in AEM.
https://experienceleague.adobe.com/docs/experience-manager-65/assets/using/metadata.html?lang=en#imp...

Please disable launchers/processing profiles while running scripts to avoid changing of lastModified property of asset and overload on AEM.

 

Avatar

Community Advisor and Adobe Champion

You can do bulk updates of Asset metadata using a CSV file. Refer https://experienceleague.adobe.com/docs/experience-manager-65/assets/using/metadata.html?lang=en#imp...

 

To prevent your PDF file from being listed in search results, use the HTTP X-Robots-Tag response header, e.g.:

X-Robots-Tag: noindex

OR 

rel="nofollow" on links to those PDFs

<a href="mypdf.pdf" rel="nofollow">Download PDF</a>

Refer https://developers.google.com/search/docs/advanced/robots/robots_meta_tag