<?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 filtering out deleted documents in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321300#M8301</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;you need to add this clause to filter deleted documents:&lt;/P&gt;
&lt;PRE&gt;
ecm:currentLifeCycleState != 'deleted'
&lt;/PRE&gt;
&lt;P&gt;Thierry&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2014 18:34:23 GMT</pubDate>
    <dc:creator>Thierry_Martins</dc:creator>
    <dc:date>2014-02-13T18:34:23Z</dc:date>
    <item>
      <title>NXQL filtering out deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321299#M8300</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the NXQL query below being executed via Resultset.PageProvider REST call&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{ "params": {  "pageSize" : 100,  "query" :  "SELECT ecm:uuid, dc:title, ecm:primaryType, ecm:isLatestVersion, ecm:isCheckedInVersion, ecm:versionVersionableId, ecm:currentLifeCycleState, file:content/mime-type FROM Picture " } }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the document has been edited then an object is returned for each version.  Adding&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;where ecm:isLatestVersion = 1 or ecm:isLatestVersion is null
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns the latest version and the deleted version and the versions can be linked by matching the deleted version's ecm:uuid property with the non-deleted ecm:versionVersionableId but it seems error prone and is not documented.&lt;/P&gt;
&lt;P&gt;Can an NXQL query be structured so documents in a deleted state are not returned without client-side post-processing?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:02:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321299#M8300</guid>
      <dc:creator>sstodghill_</dc:creator>
      <dc:date>2014-02-13T18:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL filtering out deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321300#M8301</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;you need to add this clause to filter deleted documents:&lt;/P&gt;
&lt;PRE&gt;
ecm:currentLifeCycleState != 'deleted'
&lt;/PRE&gt;
&lt;P&gt;Thierry&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 18:34:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321300#M8301</guid>
      <dc:creator>Thierry_Martins</dc:creator>
      <dc:date>2014-02-13T18:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL filtering out deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321301#M8302</link>
      <description>&lt;P&gt;Thanks, I tried that but it still returns an entry for the version that was not deleted.  The query results without the ecm&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 01:23:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321301#M8302</guid>
      <dc:creator>sstodghill_</dc:creator>
      <dc:date>2014-02-14T01:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL filtering out deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321302#M8303</link>
      <description>&lt;P&gt;Try using &lt;CODE&gt;ecm:isVersion = 0&lt;/CODE&gt; (or the more verbose &lt;CODE&gt;ecm:isCheckedInVersion = 0&lt;/CODE&gt; before Nuxeo 5.8) to only get the "live" document, instead of &lt;CODE&gt;ecm:isLatestVersion&lt;/CODE&gt; which deals with versions&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 12:51:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321302#M8303</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-03-18T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL filtering out deleted documents</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321303#M8304</link>
      <description>&lt;P&gt;This tested successfully versioning documents and not versioning them and it getting the expected results.  Thanks, Florent!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:57:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-filtering-out-deleted-documents/m-p/321303#M8304</guid>
      <dc:creator>sstodghill_</dc:creator>
      <dc:date>2014-03-27T17:57:54Z</dc:date>
    </item>
  </channel>
</rss>

