Force re-index of dam assets | Community
Skip to main content
Level 2
July 18, 2020
Solved

Force re-index of dam assets

  • July 18, 2020
  • 2 replies
  • 1786 views

I have added a new property of digitial assets to indexed. To force re-indexing, I had to manually update the damLucene node and set reindex to true. If we want to deploy this change on a cloud services application, we will need to ask the node to be manually updated. Is there an admin utility to force re-index without need for the manual node udpate?

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

Hi @aem-explorer,

With ACS "Ensure oak Index" utility, you can trigger force reindex like:

Force reindex:

Property Name: forceReindex

On create or update, the Oak Index can be marked to be immediately re-indexed by setting @forceReindex=true`.

  • /apps/mysite/oak-index/always-reindex-this-index@forceReindex=true

 

See [0] for more details.

[0]: https://adobe-consulting-services.github.io/acs-aem-commons/features/ensure-oak-index/index.html

 

 

In addition, you can also check https://docs.adobe.com/content/help/en/experience-manager-65/deploying/deploying/oak-run-indexing-usecases.html#usecase3reindexing that use oak-run.jar.

 

java -jar oak-run*.jar index --reindex --index-paths=/oak:index/lucene --read-write --fds-path=/path/to/datastore mongodb://server:port/aem

 

 

Thanks!! 

2 replies

Ravi_Pampana
Community Advisor
Community Advisor
July 19, 2020

Hi,

 

Try checking below link, using below link we can reindex the node property

http://localhost:4502/apps/acs-commons/content/oak-index-manager.html

Level 2
July 19, 2020
It now reads it's deprecated and replaced by the AEM index manager. http://localhost:4502/libs/granite/operations/content/diagnosistools/indexManager.html. There are two questions for this though. 1. It does not have a "reindex" action in this tool and secondly, I know the direct url, but if I go through touch UI, which options is this listed under?
vanegi
Adobe Employee
vanegiAdobe EmployeeAccepted solution
Adobe Employee
July 19, 2020

Hi @aem-explorer,

With ACS "Ensure oak Index" utility, you can trigger force reindex like:

Force reindex:

Property Name: forceReindex

On create or update, the Oak Index can be marked to be immediately re-indexed by setting @forceReindex=true`.

  • /apps/mysite/oak-index/always-reindex-this-index@forceReindex=true

 

See [0] for more details.

[0]: https://adobe-consulting-services.github.io/acs-aem-commons/features/ensure-oak-index/index.html

 

 

In addition, you can also check https://docs.adobe.com/content/help/en/experience-manager-65/deploying/deploying/oak-run-indexing-usecases.html#usecase3reindexing that use oak-run.jar.

 

java -jar oak-run*.jar index --reindex --index-paths=/oak:index/lucene --read-write --fds-path=/path/to/datastore mongodb://server:port/aem

 

 

Thanks!!