Asset Share search not returning asset after moving/renaming tag | Community
Skip to main content
Level 2
February 7, 2025
Solved

Asset Share search not returning asset after moving/renaming tag

  • February 7, 2025
  • 2 replies
  • 507 views

We are using Asset Share and we have a number of Assets that were tagged with a particular tag.  We had a requirement to rename the tag.  We chose to update the name by "moving" the tag - though we placed it under the same path that is was previously.  By using "move", we are able to update both the name and the title of the tag.  However after moving/renaming the tag this way, we are no longer getting results when we search by the new tag name.  And we still get results when we search using the old (removed) tag name.

 

Can anyone help me to understand whats going on here?

Best answer by narendiran_ravi

Please refer to the following Adobe documentation:

Your old tag is still present in CRX with the cq:movedTo property pointing to the new tag value. The index is also present at:

/oak:index/cqTagLucene/indexRules/cq:Tag/properties/cqMovedTo

However, this index only tracks cq:movedTo and not cq:backlinks.

Unless your pages containing the old tag reference are modified (e.g., by updating tags), AEM will not automatically replace the old reference with the new one.

To ensure a complete update, it is best to write a Groovy script that updates all old tag references in your pages/assets to the new tag manually.

2 replies

narendiran_ravi
narendiran_raviAccepted solution
Level 6
February 9, 2025

Please refer to the following Adobe documentation:

Your old tag is still present in CRX with the cq:movedTo property pointing to the new tag value. The index is also present at:

/oak:index/cqTagLucene/indexRules/cq:Tag/properties/cqMovedTo

However, this index only tracks cq:movedTo and not cq:backlinks.

Unless your pages containing the old tag reference are modified (e.g., by updating tags), AEM will not automatically replace the old reference with the new one.

To ensure a complete update, it is best to write a Groovy script that updates all old tag references in your pages/assets to the new tag manually.

Level 2
February 10, 2025

Thank you!

kautuk_sahni
Community Manager
Community Manager
February 10, 2025

@laniweisbart Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni