<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search documents filtering on a property from a parent level in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/search-documents-filtering-on-a-property-from-a-parent-level/m-p/493490#M15869</link>
    <description>&lt;P&gt;It turns out duplicating the data is the go-to rolution for this problem. But it is possible to write a custom ES writer to solve this also.&amp;nbsp;&lt;SPAN&gt;The writer would be extended to stamp the parent info only in the ES version of the document. See&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/nuxeo/nuxeo/blob/2023/modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-core/src/main/java/org/nuxeo/elasticsearch/io/JsonESDocumentWriter.java" target="_blank" rel="noopener"&gt;nuxeo/modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-core/src/main/java/org/nuxeo/elasticsearch/io/JsonESDocumentWriter.java at 2023 · nuxeo/nuxeo&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 10:46:18 GMT</pubDate>
    <dc:creator>dhaglund</dc:creator>
    <dc:date>2025-10-01T10:46:18Z</dc:date>
    <item>
      <title>Search documents filtering on a property from a parent level</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-documents-filtering-on-a-property-from-a-parent-level/m-p/493157#M15862</link>
      <description>&lt;P&gt;Lets say I have three document types. Project, SubProject and WorkFile. All of these data types have their own attributes. SubProjects reside only in Projects and they are both folders. WorkFile corrsponds to an actual file and can reside in either a Project, SubProject or normal Folder.&lt;/P&gt;&lt;P&gt;Now I want to find all WorkFiles of mime-type pdf that has a parent project where Project:Region = 'North'. How can I query something like this? Standard NXQL won't do it.&lt;/P&gt;&lt;P&gt;The first thing that comes to mind is making WorkFile inherit som meta-data from Project. This would lead to data duplication and I would need to code a listener or something to make sure attributes are inherited and kept in sync.&lt;/P&gt;&lt;P&gt;Would it be possible to build an Elastic index to solve this? Perhaps using a custom query provider? Or what would be the best way to solve this?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 11:50:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-documents-filtering-on-a-property-from-a-parent-level/m-p/493157#M15862</guid>
      <dc:creator>dhaglund</dc:creator>
      <dc:date>2025-09-24T11:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search documents filtering on a property from a parent level</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-documents-filtering-on-a-property-from-a-parent-level/m-p/493490#M15869</link>
      <description>&lt;P&gt;It turns out duplicating the data is the go-to rolution for this problem. But it is possible to write a custom ES writer to solve this also.&amp;nbsp;&lt;SPAN&gt;The writer would be extended to stamp the parent info only in the ES version of the document. See&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/nuxeo/nuxeo/blob/2023/modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-core/src/main/java/org/nuxeo/elasticsearch/io/JsonESDocumentWriter.java" target="_blank" rel="noopener"&gt;nuxeo/modules/platform/nuxeo-elasticsearch/nuxeo-elasticsearch-core/src/main/java/org/nuxeo/elasticsearch/io/JsonESDocumentWriter.java at 2023 · nuxeo/nuxeo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 10:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-documents-filtering-on-a-property-from-a-parent-level/m-p/493490#M15869</guid>
      <dc:creator>dhaglund</dc:creator>
      <dc:date>2025-10-01T10:46:18Z</dc:date>
    </item>
  </channel>
</rss>

