Message Boards

Customize search results and facets in Liferay 7.1

Rafael Bravo Díaz, modified 2 Years ago.

Customize search results and facets in Liferay 7.1

New Member Posts: 3 Join Date: 10/30/15 Recent Posts

this is my first question, thanks in advance.

I am trying to customize the liferay results portlet and facets, with custom results. I need to filter the results once the search is launched, and remove the results that do not have layoutId :

with-> layoutIds = journalContentSearchLocalService.getLayoutIds(groupId,false,articleIdResult);

I´m doing this in a jsp fragment, but i think that it´s not correct.

I have been searching and i think the correct way is to modify the java class with the action, for example with acction coomand hook, is this correct?

Please, can you explain me the correct way to modify this functionalities?

Regards!!