The Community Site has become a read-only archive. Please refer to the Help Center for new content and discussions

Elvis REST API regenerate preview

3 posts / 0 new
Last post
lucien.plattel
Twin Media B.V.
lucien.plattel's picture
Elvis REST API regenerate preview

We have a lot of XML-files in out Elvis (around 25000), and we recently edited the XSL-stylesheet.
The question now is how to update previews of all of the not-updated assets. I know this is possible in the client, but I don't like the idea of manually batching through the quite enormous list.

I've searched the API and this forum, but I have not found a clou on how the programmatically update the previews.

Any help pointing me in the right direction would be very helpful!

lasse.lehtinen
Bonnier Books Finland Ltd
lasse.lehtinen's picture

I guess you could use the Index updater with only "Regenerate thumbnails and previews" marked. Then use the filter query to limit this to assets that actually need the update (mimeType:text/xml).

erik.korver
WWSW
erik.korver's picture

Hi Lucien,

The XSL is used by the text content extraction processing tool when ingesting/checkin new XML files.

In order to have your new XSL applied to your older XML assets, you need to run the index updater with "extract textcontent" option checked and filtered on extension:xml

 

- For Elvis 4 you can simply use the Elvis server admin page "Index Updater" to configure and run.

- For Elvis 5 you can use and URL to connect, configure and run the Asset Index Updater:

Login:
http://<IP><port>/services/login?username=<username>&password=<password>

Command:
http://<IP><port>/controller/admin/asset/update?&extractText=true&threads=2&pauseMilis=200&filterQuery=extension:xml&command=start