<?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>Exclude folder from search</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111850026" />
  <subtitle>Exclude folder from search</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111850026</id>
  <updated>2026-04-05T02:20:10Z</updated>
  <dc:date>2026-04-05T02:20:10Z</dc:date>
  <entry>
    <title>Exclude folder from search</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111850025" />
    <author>
      <name>Hamidul Islam</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111850025</id>
    <updated>2018-12-20T08:12:50Z</updated>
    <published>2018-12-20T08:12:50Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I have created IndexerPostProcessor project. In my code I have
  overriden below method&lt;/p&gt;
&lt;p&gt;
  &lt;br&gt;
  &lt;code&gt;public void postProcessFullQuery(BooleanQuery fullQuery,
    SearchContext searchContext) throws Exception {&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to exclude all the folders in the search result. How can I
  alter the query?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Environment : &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Liferay 7 / elastic search&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Hamidul Islam&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Hamidul Islam</dc:creator>
    <dc:date>2018-12-20T08:12:50Z</dc:date>
  </entry>
</feed>
