Fórum
Filter search result per Parent Category
Nicolas Pinçon, modificado 6 Anos atrás.
Filter search result per Parent Category
New Member Mensagem: 1 Data de Entrada: 10/11/17 Postagens Recentes
Hi,
I would like to be able to filter a WebContent search result set with parent category.
Let me illustrate my problem with an example.
I have 1 vocabulary containing 4 categories.
Vocabulary : Countries and Cities
Finaly, I have a webcontent (WC1) associated with "NYC" another one associated to "Washington" (WC2) and a third one associated to "Madrid" (WC3).
When I do a search, my 3 results are shown. I would like to filter my search result per "USA" (so the "Parent category") in order to retrieve only 2 results (WC1 and WC2) :
- Is it possible only throuhgt search portlet configuration ? I have been looking in search portlet configuration but can't find the correct setting.
- Only throught custom code ? Like overriding the Liferay search portlet ?
I am using Liferay7-GA4.
Many thanks,
Nicolas
I would like to be able to filter a WebContent search result set with parent category.
Let me illustrate my problem with an example.
I have 1 vocabulary containing 4 categories.
Vocabulary : Countries and Cities
- Category 1 : USA
- Category 1a : NYC
- Category 1b : Washington
- Category 2 : Spain
- Category 2a : Madrid
Finaly, I have a webcontent (WC1) associated with "NYC" another one associated to "Washington" (WC2) and a third one associated to "Madrid" (WC3).
When I do a search, my 3 results are shown. I would like to filter my search result per "USA" (so the "Parent category") in order to retrieve only 2 results (WC1 and WC2) :
- Is it possible only throuhgt search portlet configuration ? I have been looking in search portlet configuration but can't find the correct setting.
- Only throught custom code ? Like overriding the Liferay search portlet ?
I am using Liferay7-GA4.
Many thanks,
Nicolas