<?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 for nodes that do not have a property in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19615#M8673</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/85889"&gt;@Telmo&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally it is better to start a new thread rather than add to one where there is already an accepted solution - you are more likely to get a response with a new thread.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 13:42:39 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2021-05-28T13:42:39Z</dc:date>
    <item>
      <title>Search for nodes that do not have a property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19611#M8669</link>
      <description>I'd like to search for nodes that do not have a specific property from the Javascript Console using fts-alfresco.&amp;nbsp; Is this possible?&amp;nbsp; I've tried several variations such as ISNULL, ISUNSET.In the following example, I'm trying to find nodes that do not have the custom property gry:documentNumber.&amp;nbsp;var</description>
      <pubDate>Sun, 01 Oct 2017 01:11:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19611#M8669</guid>
      <dc:creator>neilecker</dc:creator>
      <dc:date>2017-10-01T01:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search for nodes that do not have a property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19612#M8670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer depends on exactly what you mean ..... Do you want to find...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Nodes that do not have the property at all?&lt;/LI&gt;&lt;LI&gt;Nodes that have a null value for the property?&lt;/LI&gt;&lt;LI&gt;Nodes that have an empty string value for the property?&lt;/LI&gt;&lt;LI&gt;Nodes that are unqueryable as they generate no full text search tokens?&lt;/LI&gt;&lt;LI&gt;Multi-valued properties where any one of the values is null?&lt;/LI&gt;&lt;LI&gt;Some combination of the above.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several fields in the index to support such queries and some groupings which you have tried ISNULL, ISUNSET etc. I suspect you are probably looking for .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;......&amp;nbsp;&amp;nbsp;&amp;nbsp; -EXISTS:"gry:documentNumber"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Via the public API you can also facet on the PROPERTIES field and get reports of which properties are set over the results of a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 08:52:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19612#M8670</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2017-10-02T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search for nodes that do not have a property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19613#M8671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your assumption was correct, the EXISTS is what I needed to find nodes that do not have a particular property.&amp;nbsp; Whatever resource I was looking at may have been old and didn't seem to have that option but I do see it listed here:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-fields.html" title="http://docs.alfresco.com/5.1/concepts/rm-searchsyntax-fields.html" rel="nofollow noopener noreferrer"&gt;Search in fields | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my query to find nodes of a certain type that did not have the property "gry:documentNumber" became the following:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt; searchObj &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;query&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt; 'PATH&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;"&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;/&lt;/SPAN&gt;app&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;company_home&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;/&lt;/SPAN&gt;st&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;sites&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;/&lt;/SPAN&gt;cm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;test&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;-&lt;/SPAN&gt;area&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;/&lt;/SPAN&gt;cm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;documentLibrary&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;/&lt;/SPAN&gt;cm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt;Test&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;//*" AND TYPE:"gry:content" AND -EXISTS:"gry:documentNumber" AND -ASPECT:"rma:record"',&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;language&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;'fts-alfresco'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 14:30:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19613#M8671</guid>
      <dc:creator>neilecker</dc:creator>
      <dc:date>2017-10-02T14:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search for nodes that do not have a property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19614#M8672</link>
      <description>&lt;P&gt;So, this should be the correct way for searching for the different scenarios:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Nodes that do not have the property at all?&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;-EXISTS:"gry:documentNumber"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Nodes that have a null value for the property?&amp;nbsp;&lt;SPAN&gt;ISNULL:"gry:documentNumber" &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Nodes that have an empty string value for the property?&amp;nbsp;&lt;SPAN&gt;"gry:documentNumber":""&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;and if I want to combine all of them it should be&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-EXISTS:"gry:documentNumber" OR&amp;nbsp;ISNULL:"gry:documentNumber" OR&amp;nbsp;"gry:documentNumber":""&lt;BR /&gt;&lt;BR /&gt;Am I right?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:31:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19614#M8672</guid>
      <dc:creator>Telmo</dc:creator>
      <dc:date>2021-05-27T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search for nodes that do not have a property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19615#M8673</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/85889"&gt;@Telmo&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally it is better to start a new thread rather than add to one where there is already an accepted solution - you are more likely to get a response with a new thread.&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 13:42:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19615#M8673</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-05-28T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search for nodes that do not have a property</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19616#M8674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to this with filterQueries ?&lt;/P&gt;&lt;P&gt;Something like "filterQueries:" [{"query:" "gry:documentNumber:null"}]&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 14:13:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-for-nodes-that-do-not-have-a-property/m-p/19616#M8674</guid>
      <dc:creator>franciscoduarte</dc:creator>
      <dc:date>2021-10-29T14:13:52Z</dc:date>
    </item>
  </channel>
</rss>

