<?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: NXQL : select documents where creator email equals ... in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-select-documents-where-creator-email-equals/m-p/320120#M7121</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I don't think you'll be able to do that natively through NXQL, dc:creator is not a complex property, it's a reference toward a principal, that's why you can't search based upon its property (you don't have access to that "object" yet)&lt;/P&gt;
&lt;P&gt;Through custom code you could index aside the dc:creator property a new custom dc:creatorEmail property on ElasticSearch, and then use it in your search (or save it in a custom metadata directly if you want to rely on a search against DataBase).
But you will need to manage the updates, like catching a user's email update to trigger an update on documents referencing them, which you would need to be careful with (you don't want a user email update to trigger reindexing on millions of documents).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 09:50:57 GMT</pubDate>
    <dc:creator>Jordann_Roussel</dc:creator>
    <dc:date>2022-10-21T09:50:57Z</dc:date>
    <item>
      <title>NXQL : select documents where creator email equals ...</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-select-documents-where-creator-email-equals/m-p/320119#M7120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I know that this NXQL is working :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM Document WHERE dc:creator = 'user.name'
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But is it possible to query on email attribute ?
I tried this but it doesn't work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM Document WHERE dc:creator/properties/email = 'admin@email.com'
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 09:43:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-select-documents-where-creator-email-equals/m-p/320119#M7120</guid>
      <dc:creator>Ghazi_HAKIM</dc:creator>
      <dc:date>2022-09-28T09:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL : select documents where creator email equals ...</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-select-documents-where-creator-email-equals/m-p/320120#M7121</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I don't think you'll be able to do that natively through NXQL, dc:creator is not a complex property, it's a reference toward a principal, that's why you can't search based upon its property (you don't have access to that "object" yet)&lt;/P&gt;
&lt;P&gt;Through custom code you could index aside the dc:creator property a new custom dc:creatorEmail property on ElasticSearch, and then use it in your search (or save it in a custom metadata directly if you want to rely on a search against DataBase).
But you will need to manage the updates, like catching a user's email update to trigger an update on documents referencing them, which you would need to be careful with (you don't want a user email update to trigger reindexing on millions of documents).&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 09:50:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-select-documents-where-creator-email-equals/m-p/320120#M7121</guid>
      <dc:creator>Jordann_Roussel</dc:creator>
      <dc:date>2022-10-21T09:50:57Z</dc:date>
    </item>
  </channel>
</rss>

