Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How can I perform a User Search on the Lucene Index
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
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
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.
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
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