<?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 portlets</title>
  <link rel="self" href="https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=3583374" />
  <subtitle>Search portlets</subtitle>
  <id>https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=3583374</id>
  <updated>2026-05-13T20:28:44Z</updated>
  <dc:date>2026-05-13T20:28:44Z</dc:date>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3665095" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3665095</id>
    <updated>2009-07-28T09:57:24Z</updated>
    <published>2009-07-28T09:57:24Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;Arvind Mishra:&lt;/div&gt;&lt;blockquote&gt;I guess this should solve your first problem&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;journal.content.search.show.listed=true&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;br&gt;Great, thanks.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2009-07-28T09:57:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3585502" />
    <author>
      <name>Arvind Mishra</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3585502</id>
    <updated>2009-07-16T14:33:51Z</updated>
    <published>2009-07-16T14:33:51Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I guess this should solve your first problem&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
##
## Journal Content Search Portlet
##

    #
    # Set whether unlisted articles are excluded from search results.
    #
    journal.content.search.show.listed=true
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Arvind Mishra</dc:creator>
    <dc:date>2009-07-16T14:33:51Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3584169" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3584169</id>
    <updated>2009-07-16T12:30:10Z</updated>
    <published>2009-07-16T12:30:10Z</published>
    <summary type="html">But I still don&amp;#39;t understand why the web content search produces a different result than the &amp;#34;global search&amp;#34;.&lt;br /&gt;&lt;br /&gt;I have a search box in my theme using $theme.journalContentSearch() and that does not find articles that are only shown through the asset publisher. &lt;br /&gt;&lt;br /&gt;Using the &amp;#34;Search Portlet&amp;#34; those articles are found (and shown as part of the WebContent result), so why are they excluded in the web content search?&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;blessed by liferay with ext&lt;/blockquote&gt;It&amp;#39;s more of a curse than a blessing. &lt;br /&gt;It makes upgrades a nightmare. &lt;br /&gt;I&amp;#39;ll go for a JSP hook which is still a nightmare but not as much as the ext environment</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2009-07-16T12:30:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583896" />
    <author>
      <name>Parul Seth</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583896</id>
    <updated>2009-07-16T11:51:54Z</updated>
    <published>2009-07-16T11:51:54Z</published>
    <summary type="html">Hi Thomas&lt;br /&gt;&lt;br /&gt;Yes you can do that or as I said you can comment out the open search classes in liferay-portlet.xml, either ways it&amp;#39;ll serve the purpose.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Your suggestion to retrieve only the portlets used in the community:&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;That works fine for me though.&lt;br /&gt;&lt;br /&gt;Yeah that&amp;#39;s very true and so we have been blessed by liferay with ext &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; Regards&lt;br /&gt;Parul Seth&lt;br /&gt;Impetus Infotech (India) Pvt. Ltd.</summary>
    <dc:creator>Parul Seth</dc:creator>
    <dc:date>2009-07-16T11:51:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583769" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583769</id>
    <updated>2009-07-16T11:40:57Z</updated>
    <published>2009-07-16T11:40:57Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Just for the record: &lt;br&gt;&lt;br&gt;My workaround is to change search.jsp and instead of&lt;br&gt;&lt;pre&gt;&lt;code&gt;List portlets = PortletLocalServiceUtil.getPortlets(company.getCompanyId(), false, false);&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;I'm manually adding the portlets I want to search:&lt;br&gt;&lt;pre&gt;&lt;code&gt;List portlets = new ArrayList(); 
Portlet webContent = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), "15");
portlets.add(webContent);
Portlet docLib = PortletLocalServiceUtil.getPortletById(company.getCompanyId(), "20");
portlets.add(docLib);
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Your suggestion to retrieve only the portlets used in the community:&lt;br&gt;&lt;pre&gt;&lt;code&gt;LayoutTypePortlet layoutTypePortlet2 = (LayoutTypePortletImpl)layout.getLayoutType();
List portlets = layoutTypePortlet2.getPortlets();&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;did not work for me. With that code no search results were shown (seems that the list of portlets is empty in this case)&lt;br&gt;&lt;br&gt;&lt;div class="quote-title"&gt;Parul Seth:&lt;/div&gt;&lt;blockquote&gt;That is inevitable &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif"&gt;&lt;/blockquote&gt;&lt;br&gt;Unfortunately I hear that way too often. &lt;br&gt;&lt;br&gt;Having to customize the portal by patching the source creates a maintenance nightmare when you want to upgrade to a new version.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2009-07-16T11:40:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583723" />
    <author>
      <name>Parul Seth</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583723</id>
    <updated>2009-07-16T11:37:54Z</updated>
    <published>2009-07-16T11:37:54Z</published>
    <summary type="html">That is inevitable &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;But as Victor and I have discussed in that post , it&amp;#39;ll be good to have that level of customization in the serach portlet by default. As per your requirement its just commenting out few lines in the liferay-portlet.xml &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;Thanks &amp;amp; Regards&lt;br /&gt;Parul Seth</summary>
    <dc:creator>Parul Seth</dc:creator>
    <dc:date>2009-07-16T11:37:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583585" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583585</id>
    <updated>2009-07-16T11:26:20Z</updated>
    <published>2009-07-16T11:26:20Z</published>
    <summary type="html">Sigh....  patching Liferay source again&lt;br /&gt;&lt;br /&gt;Thanks for the answer anyway</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2009-07-16T11:26:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583441" />
    <author>
      <name>Parul Seth</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583441</id>
    <updated>2009-07-16T11:09:35Z</updated>
    <published>2009-07-16T11:09:35Z</published>
    <summary type="html">Hi Thomas&lt;br /&gt;&lt;br /&gt;You can refer &lt;a href="http://www.liferay.com/web/guest/community/forums/-/message_boards/message/3099558"&gt;this&lt;/a&gt; post.&lt;br /&gt;&lt;br /&gt;HTH&lt;br /&gt;Thanks &amp;amp; Regards&lt;br /&gt;Parul Seth&lt;br /&gt;Impetus Infotech (India) Pvt. Ltd.</summary>
    <dc:creator>Parul Seth</dc:creator>
    <dc:date>2009-07-16T11:09:35Z</dc:date>
  </entry>
  <entry>
    <title>Search portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583373" />
    <author>
      <name>Thomas Kellerer</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=3583373</id>
    <updated>2009-07-16T11:02:08Z</updated>
    <published>2009-07-16T11:02:08Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;I have some questions regarding the search: &lt;br /&gt;&lt;br /&gt;The Web Content search seems to only include content that is actually put on some page. &lt;br /&gt;If a Web Content is displayed e.g. only through the Asset publisher the Web Content search does not find those articles (yes, I did re-index everything). &lt;br /&gt;&lt;br /&gt;But they &lt;em&gt;are&lt;/em&gt; found when using the portal wide search instead (which makes it even more confusing for the user)&lt;br /&gt;&lt;br /&gt;The &amp;#34;Search Portlet&amp;#34; (portal-wide) always searches in all portlets, even in disabled ones. &lt;br /&gt;I&amp;#39;m not using Blogs, Wiki, Forum etc. &lt;br /&gt;&lt;br /&gt;So: how can I control the portlets that are searched by the portal search? I want to restrict this to Web Content and Document Library&lt;br /&gt;&lt;br /&gt;And how can I adjust the display of the search result? &lt;br /&gt;(I guess I already know &lt;strong&gt;that&lt;/strong&gt; answer: I need patch the Liferay source code &lt;img alt="emoticon" src="@theme_images_path@/emoticons/sad.gif" &gt; ):&lt;br /&gt;&lt;br /&gt;Making the results from the blog search the most prominent one is ridicolous. Web Content is a lot more important for an enterprise portal. The &amp;#34;result&amp;#34; for the blogs is even displayed when the portlet is disabled (leaving 3/4 of the page blank and the relevant search results are hidden in a tiny little &amp;#34;Web Content&amp;#34; result area.</summary>
    <dc:creator>Thomas Kellerer</dc:creator>
    <dc:date>2009-07-16T11:02:08Z</dc:date>
  </entry>
</feed>
