RE: Search not woring

thumbnail
Archi Madhu, modified 14 Years ago. Regular Member Posts: 237 Join Date: 3/25/08 Recent Posts
Hello,

Does any one know whether in Liferay 6 EE SP1 lucene search is working with algorithm 2?
I checked it and it's not working at my endemoticon

here is code snippet from where it generating query , if permission algorithm is 2 Query is null and so we are getting NPE in LuceneIndexSearcherImpl.java

public Query getPermissionQuery(
long companyId, long[] groupIds, long userId, String className,
Query query) {

try {
if (PropsValues.PERMISSIONS_USER_CHECK_ALGORITHM == 5) {
return doGetPermissionQuery_5(
companyId, groupIds, userId, className, query);
}
else if (PropsValues.PERMISSIONS_USER_CHECK_ALGORITHM == 6) {
return doGetPermissionQuery_6(
companyId, groupIds, userId, className, query);
}
}
catch (Exception e) {
_log.error(e, e);
}

return null;
}



Please help!
-Archi
thumbnail
Jignesh Thakkar, modified 14 Years ago. Junior Member Posts: 26 Join Date: 5/10/10 Recent Posts
Hi Archi,

In LR 6 SP1, there are only 2 algorithm is allowed 5 & 6 for not only search but for so many other functionality also.

If you want to run your LR6 SP1 version on algorithm 2 then you have to write your custom code to work search and everywhere you will got error related to same.

Thanks
Jignesh
thumbnail
Archi Madhu, modified 14 Years ago. Regular Member Posts: 237 Join Date: 3/25/08 Recent Posts
Hi Jignesh,

But we have migrated from 5.1.2 to 6 EE SP1

There are many permissions given as per algorithm 2 in old version.
So, we can not move to algorithm 5 all of sudden as it is not reliable and there are no clear instructions to upgrade you permission algorithm.

Anyone has not came across same scenario in community?!
Nisarg Parikh, modified 14 Years ago. Expert Posts: 262 Join Date: 12/31/09 Recent Posts
Hey, Archi

I have came across this kind of issue before while I was migrating from 5.2.3 to 6.0 EE.

It is a permission related issue in Liferay while migrating to 6.0.

Please refer to below link, it has clearly mentioned that you have to keep you algorithm value as 5. We also have put value like this.

http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+Instructions+from+5.2+to+6.0#_36_message_5374302
http://issues.liferay.com/browse/LPS-13281

Hope this helps you.

Nisarg Parikh
thumbnail
Archi Madhu, modified 14 Years ago. Regular Member Posts: 237 Join Date: 3/25/08 Recent Posts
Hi Nisarg,

As I mentioned , we did upgrade from 5.1.2.

And in previous version we used permission algorithm 2. Lot of permissions on content are per algorithm 2.

It is strange that there no clear/proper upgrade path available from permission algorithm 2 to 5. and they do not support permission algorithm 2.

-Archi