Issue
- Not getting similar results from Headless APIs when filtering content by internal categories. However, everything works fine with Public categories.
-
The following are the steps:
1. Create an Asset Library, Vocabulary (internal), Category, Folder, and Web Contents
2. Assign the internal Category to a Web Content.
3. Use the Headless API endpoint /o/headless-delivery/v1.0/structured-content-folders/{folderId}/structured-contents to retrieve content.
4. Apply the filter criteria taxonomyCategoryIds/any(t:t eq {category_id}) with the internal Category ID.Expected Behavior: Information about the internal categories should be returned when the filter criteria is applied.
Observed Behavior: Information about the internal categories is not coming when the filter criteria is applied.
Environment
- Liferay DXP 7.4
Resolution
- The reported behavior is the Product's current limitation because the indexing of internal and external categories is currently done independently.
- Additionally, due to its complexity and dependencies on the multiple components, it would not be possible to provide a fix to resolve this.
- As a workaround, without making categories public, it can be possible keeping the internal category-applied web contents in the same folder and keep them in a different folder. In conclusion, avoid filtering and fetch the data directly.