Legacy Knowledge Base
Published Sep. 10, 2025

Migrating Tag Sets During the Upgrade Process From Liferay Portal 5.2 to 6.0

Written By

Justin Choi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

This article outlines the changes to Tags and Tag Sets between Liferay Portal 5.2 to Liferay Portal 6.0, and later versions.

Specifically:

  1. The changes to the Tags Navigation Portlet (Where Did Tag Sets Go?)
  2. How to migrate Tags to Categories and Tag Sets to Vocabularies.

Resolution

1. The changes to the Tags Navigation Portlet (Where Did the Tag Sets Go?)

In Liferay Portal 5.2, Tags could be organized into Tag Sets, which is an unstructured grouping called a folksonomy. The Tags Navigation portlet displayed Tags grouped by Tag Set. After upgrading to Liferay Portal 6.0, the Tags Navigation portlet only displays Tags and no longer displays Tag Sets. This is intended behavior, because starting with Liferay Portal 6.0, Tags Sets are replaced by Vocabularies.

During the upgrade process to Liferay Portal 6.0 and subsequent versions, Tag Sets are ignored and only Tags are included. Hence, the Tags Navigation portlet only displays Tags and no longer displays the Tag sets. The original Tag and Tag Set data is retained in the tagsentry and tagsvocabulary database tables.

2. How to migrate Tags to Categories and Tag Sets to Vocabularies.

Scenario 1:

  1. If the portal admin has not yet upgraded from 5.2.x EE to 6.0.x EE, the administrator can change the folksonomy value in the database for specific Tag Sets. Each Tag Set can be included or excluded from the upgrade process by changing the folksonomy value to 0 (false) or 1 (true) in the tags vocabulary table.
  2. Perform the upgrade.
  3. Tags and Tag Sets will be migrated and displayed as Vocabularies and Categories in the Category Navigation portlet for the Tag Sets where folksonomy was 0 (false) in the tagsvocabulary table. Tags will be displayed as Tags in the Tags Navigation portlet for Tag Sets where folksonomy was 1 (true) in the tagsvocabulary table.

Scenario 2:

  1. If the portal admin has already upgraded to 6.0.x EE or later version of the portal, there are two options:
  2. Perform the upgrade again, as per Scenario 1.
  3. Build and deploy a custom hook to migrate the original Tag and Tag Set data from the tagsentry and tagsvocabulary tables. The custom hook could override or extend “updateAssetCategories()” methods in Java class “com.liferay.portal.upgrade.v6_0_0.UpgradeAsset”.
Did this article resolve your issue ?

Legacy Knowledge Base