<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Search not woring</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=9757524" />
  <subtitle>Search not woring</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=9757524</id>
  <updated>2026-05-06T15:48:58Z</updated>
  <dc:date>2026-05-06T15:48:58Z</dc:date>
  <entry>
    <title>RE: Search not woring</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9820728" />
    <author>
      <name>Archi Madhu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9820728</id>
    <updated>2011-07-04T09:25:01Z</updated>
    <published>2011-07-04T09:25:01Z</published>
    <summary type="html">Hi Nisarg,&lt;br /&gt;&lt;br /&gt;As I mentioned , we did upgrade from 5.1.2.&lt;br /&gt;&lt;br /&gt;And in previous version we used permission algorithm 2. Lot of permissions on content are per algorithm 2.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;-Archi</summary>
    <dc:creator>Archi Madhu</dc:creator>
    <dc:date>2011-07-04T09:25:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search not woring</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9816114" />
    <author>
      <name>Nisarg Parikh</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9816114</id>
    <updated>2011-07-04T07:06:50Z</updated>
    <published>2011-07-04T07:06:50Z</published>
    <summary type="html">Hey, Archi&lt;br /&gt;&lt;br /&gt;I have came across this kind of issue before while I was migrating from 5.2.3 to 6.0 EE.&lt;br /&gt;&lt;br /&gt;It is a permission related issue in Liferay while migrating to 6.0.&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;http://www.liferay.com/community/wiki/-/wiki/Main/Upgrade+Instructions+from+5.2+to+6.0#_36_message_5374302&lt;br /&gt;http://issues.liferay.com/browse/LPS-13281&lt;br /&gt;&lt;br /&gt;Hope this helps you.&lt;br /&gt;&lt;br /&gt;Nisarg Parikh</summary>
    <dc:creator>Nisarg Parikh</dc:creator>
    <dc:date>2011-07-04T07:06:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search not woring</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9757827" />
    <author>
      <name>Archi Madhu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9757827</id>
    <updated>2011-07-01T12:37:40Z</updated>
    <published>2011-07-01T12:37:40Z</published>
    <summary type="html">Hi Jignesh,&lt;br /&gt;&lt;br /&gt;But we have migrated from 5.1.2 to 6 EE SP1&lt;br /&gt;&lt;br /&gt;There are many permissions given as per algorithm 2 in old version.&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;Anyone has not came across same scenario in community?!</summary>
    <dc:creator>Archi Madhu</dc:creator>
    <dc:date>2011-07-01T12:37:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search not woring</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9758551" />
    <author>
      <name>Jignesh Thakkar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9758551</id>
    <updated>2011-07-01T12:14:41Z</updated>
    <published>2011-07-01T12:14:41Z</published>
    <summary type="html">Hi Archi,&lt;br /&gt;&lt;br /&gt;In LR 6 SP1, there are only 2 algorithm is allowed 5 &amp;amp; 6 for not only search but for so many other functionality also. &lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Jignesh</summary>
    <dc:creator>Jignesh Thakkar</dc:creator>
    <dc:date>2011-07-01T12:14:41Z</dc:date>
  </entry>
  <entry>
    <title>Search not woring</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9757523" />
    <author>
      <name>Archi Madhu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=9757523</id>
    <updated>2011-07-01T11:55:58Z</updated>
    <published>2011-07-01T11:55:58Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;Does any one know whether in Liferay 6 EE SP1 lucene search is working with algorithm 2?&lt;br /&gt;I checked it and it&amp;#39;s not working at my end&lt;img alt="emoticon" src="@theme_images_path@/emoticons/sad.gif" &gt;&lt;br /&gt;&lt;br /&gt;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&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;public Query getPermissionQuery(&lt;br /&gt;		long companyId, long[] groupIds, long userId, String className,&lt;br /&gt;		Query query) {&lt;br /&gt;&lt;br /&gt;		try {&lt;br /&gt;			if (PropsValues.PERMISSIONS_USER_CHECK_ALGORITHM == 5) {&lt;br /&gt;				return doGetPermissionQuery_5(&lt;br /&gt;					companyId, groupIds, userId, className, query);&lt;br /&gt;			}&lt;br /&gt;			else if (PropsValues.PERMISSIONS_USER_CHECK_ALGORITHM == 6) {&lt;br /&gt;				return doGetPermissionQuery_6(&lt;br /&gt;					companyId, groupIds, userId, className, query);&lt;br /&gt;			}&lt;br /&gt;		}&lt;br /&gt;		catch (Exception e) {&lt;br /&gt;			_log.error(e, e);&lt;br /&gt;		}&lt;br /&gt;&lt;br /&gt;		return null;&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt; &lt;br /&gt;&lt;br /&gt;Please help!&lt;br /&gt;-Archi</summary>
    <dc:creator>Archi Madhu</dc:creator>
    <dc:date>2011-07-01T11:55:58Z</dc:date>
  </entry>
</feed>
