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: Search not woring
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 end
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
Please help!
-Archi
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 end
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
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
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
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?!
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?!
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
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
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
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
Community
Company
Feedback