Fórum

Customize Liferay Search functionality for specific user details.

thumbnail
Raja Seth, modificado 9 Anos atrás.

Customize Liferay Search functionality for specific user details.

Regular Member Postagens: 233 Data de Entrada: 18/08/11 Postagens Recentes
Hi All,

I have two users in my liferay database which are as below :-
  • Raja Seth (raja.seth@liferay.com)
  • Test Test (raja@liferay.com)


I need to modify liferay search function such that if I search for "raja" only user "Raja Seth" should appear in the search result not "Test Test".

Please suggest how to proceed.

Thanks & Regards,
Raja
Anonymous Anonymous, modificado 9 Anos atrás.

RE: Customize Liferay Search functionality for specific user details.

Regular Member Postagens: 127 Data de Entrada: 16/09/19 Postagens Recentes
Hi Raja Seth


I need to modify liferay search function such that if I search for "raja" only user "Raja Seth" should appear in the search result not "Test Test".

There are many ways to achive this
1) you can use jquery autocomplete then it will predicted automatically.

2) when the user enters a value and submit you can check that in user table and match that screen name with entered one like :

enteredone.startsWith(prefix);

Regards
Enayath
thumbnail
Raja Seth, modificado 9 Anos atrás.

RE: Customize Liferay Search functionality for specific user details.

Regular Member Postagens: 233 Data de Entrada: 18/08/11 Postagens Recentes
Hi Enayath,

Thanks for your reply. I guess you didn't get my question. In my case search functionality default behavior should work as it is just I need to make a check on user section. I want to know, is there any additional check which I could add to filter on user perspective.

Thanks,
Raja