<?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>Liferay 7.2 - Hits query is returning the DDMStructure default value</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119231280" />
  <subtitle>Liferay 7.2 - Hits query is returning the DDMStructure default value</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119231280</id>
  <updated>2026-04-06T08:46:35Z</updated>
  <dc:date>2026-04-06T08:46:35Z</dc:date>
  <entry>
    <title>Liferay 7.2 - Hits query is returning the DDMStructure default value</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119231279" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119231279</id>
    <updated>2020-05-25T10:26:41Z</updated>
    <published>2020-05-25T10:26:41Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;I am doing some queries to my "STRUCTURE_KEY" Web Contents with a Hits query:&lt;pre&gt;&lt;code&gt;Hits hits = JournalArticleLocalServiceUtil.search(
&amp;amp;nbsp; &amp;amp;nbsp; myGroup.getCompanyId(),&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; myGroup.getGroupId(),&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; Arrays.asList(JournalFolderConstants.DEFAULT_PARENT_FOLDER_ID),&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; JournalArticleConstants.CLASSNAME_ID_DEFAULT,&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; "STRUCTURE_KEY",&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; null,&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; null,&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; null,&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; 0,&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; 16,&amp;amp;nbsp;
&amp;amp;nbsp; &amp;amp;nbsp; SortFactoryUtil.create(Field.MODIFIED_DATE, Sort.DOUBLE_TYPE, true)
);&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;The problem is that I was testing the DDMStructure default values, and by mistake I hit save and saved the default values. Now the Hits query is returning the&amp;nbsp;DDMStructure default values as a Web Content. Is there any way to exclude this DDMStructure default values from the query? I thought that by setting "JournalArticleConstants.CLASSNAME_ID_DEFAULT" as a param, would return only the JournalArticle objects and not the DDMStructure default values also. Am I missing something here?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2020-05-25T10:26:41Z</dc:date>
  </entry>
</feed>
