RE: How can I perform a User Search on the Lucene Index

thumbnail
Christian Schulze, modified 14 Years ago. Junior Member Posts: 87 Join Date: 11/19/09 Recent Posts
Hello,

I wan't to search for User on the Lucene Index, because using a DynamicQuery for more than 80000 Users is inefficient.

Has someone a good tutorial?

regards
Chris
thumbnail
David H Nebinger, modified 14 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Check out <portal source>/portal-web/docroot/html/portlet/enterprise_admin/user_search_results_index.jspf. It uses the lucene index to search for users.
thumbnail
Hitoshi Ozawa, modified 14 Years ago. Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
Following page explains about how Lucene index is used in Liferay. Unfortunately, it doesn't use user_ in it's example but I think you'll get the idea after reading it.

http://vforliferay.blogspot.com/2010/11/lucene-search-in-liferay.html

BTW, lucene search parameters are set in portal-ext.properties in the following properties. You may need to optimize it for your situation.
http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lucene-search