<?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: Getting documents that do not have a specific tag? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/getting-documents-that-do-not-have-a-specific-tag/m-p/316202#M3203</link>
    <description>&lt;P&gt;Please read &lt;A href="http://doc.nuxeo.com/x/uItH"&gt;NXQL&lt;/A&gt; and search for &lt;CODE&gt;ecm:tag&lt;/CODE&gt;, and note that the syntax is similar to that of complex properties.&lt;/P&gt;
&lt;P&gt;But to be honest we've never considered negative matches for tags. You may want to play with things like &lt;CODE&gt;ecm:tag/*&lt;/CODE&gt; and also note that checking for &lt;CODE&gt;IS NULL&lt;/CODE&gt; is useful in negative queries for complex properties.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2014 13:35:19 GMT</pubDate>
    <dc:creator>Florent_Guillau</dc:creator>
    <dc:date>2014-03-18T13:35:19Z</dc:date>
    <item>
      <title>Getting documents that do not have a specific tag?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-documents-that-do-not-have-a-specific-tag/m-p/316201#M3202</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;i'm trying to construct a query that would get me all documents that have not been tagged with a particular tag. I started out with a query that would give me the documents that had been tagged, somehting like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM Document WHERE ecm:currentLifeCycleState &amp;lt;&amp;gt; "deleted" AND ecm:tag = "mytag"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This worked fine, so I tried the (probably naive) approach of simply inverting the equality operator&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM Document WHERE ecm:currentLifeCycleState &amp;lt;&amp;gt; "deleted" AND ecm:tag &amp;lt;&amp;gt; "mytag"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, this returned me a different set than what I was looking for. It did not return documents that had no tag at all, and it returned a document that was tagged "mytag" but was also tagged with something else.&lt;/P&gt;
&lt;P&gt;Does anyone have a suggestion for me how to get all files that have no tag matching "mytag"?
Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 00:52:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-documents-that-do-not-have-a-specific-tag/m-p/316201#M3202</guid>
      <dc:creator>chrisd_</dc:creator>
      <dc:date>2014-03-03T00:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting documents that do not have a specific tag?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/getting-documents-that-do-not-have-a-specific-tag/m-p/316202#M3203</link>
      <description>&lt;P&gt;Please read &lt;A href="http://doc.nuxeo.com/x/uItH"&gt;NXQL&lt;/A&gt; and search for &lt;CODE&gt;ecm:tag&lt;/CODE&gt;, and note that the syntax is similar to that of complex properties.&lt;/P&gt;
&lt;P&gt;But to be honest we've never considered negative matches for tags. You may want to play with things like &lt;CODE&gt;ecm:tag/*&lt;/CODE&gt; and also note that checking for &lt;CODE&gt;IS NULL&lt;/CODE&gt; is useful in negative queries for complex properties.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 13:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/getting-documents-that-do-not-have-a-specific-tag/m-p/316202#M3203</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2014-03-18T13:35:19Z</dc:date>
    </item>
  </channel>
</rss>

