Highlighted

Tagging in AEM 6.1-time lag in fetching the recently assigned tags

Avatar

Avatar

ADOBE_AEM

Avatar

ADOBE_AEM

ADOBE_AEM

05-10-2018

Tags are that are created and stored in path application/project/module

are assigned to new nodes path application/project/module-new

The issue is :

Once the tags are assigned to the required new nodes , and when we refresh or try to fetch the tags, immediately after saving the tags to the new nodes – the recently saved tags are not fetched . It’s happening intermittently.

Sometimes the recently saved tags are fetched, sometimes not.

We are assigning / saving the tags like below –

                                    tagManager.setTags(featurePage.getContentResource(), newTags.toArray(new Tag[] {}));             

We are fetching the tags via the below code –

final RangeIterator<Resource> contentIterator = tagManager.find(pagepath, tagsIds);

  • The tagManager.find(pagepath, tagsIds); is not returning the feature pages of the recently saved tags .

We are saving the session / committing the resource resolver if any pending changes .

Request you to please provide your suggestions.

Replies

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

958

Correct Answer

820

Avatar

Arun_Patidar

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

958

Correct Answer

820
Arun_Patidar
MVP

05-10-2018

Hi,

Can you try to set tags using below method

tagManager.setTags(featurePage.getContentResource(), newTags.toArray(new Tag[] {}),true);  

Highlighted

Avatar

Avatar

ADOBE_AEM

Avatar

ADOBE_AEM

ADOBE_AEM

10-10-2018

Hi Arun,

We tried using the above method but still the issue persists.