<?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 CMIS aspect query with path in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-aspect-query-with-path/m-p/19433#M8590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to query a particular folder in the repository using a java based scheduler in alfresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to check whether the custom aspect's property is present or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below query works for me when I don't use the path query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from myType:caseDoc as d join myAspect:caseId as s on d.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId = s.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the above query is it searches all the contents in the repository but I want to target a particular folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to put the CONTAINS in the above query it fails.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from cch:caseDoc as d&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; join cch:caseId as s on d.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId = s.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId &lt;EM&gt;WHERE CONTAINS('PATH:"//app:company_home/cm:FDLE/cm:CCH/cm:CCH-DROP-FOLDER/*"') &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives below exception&lt;/P&gt;&lt;H2&gt;A selector must be specified when there are two or more selectors&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 14:33:33 GMT</pubDate>
    <dc:creator>alfresco_one</dc:creator>
    <dc:date>2017-03-17T14:33:33Z</dc:date>
    <item>
      <title>CMIS aspect query with path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-aspect-query-with-path/m-p/19433#M8590</link>
      <description>Hi all,I need to query a particular folder in the repository using a java based scheduler in alfresco.I need to check whether the custom aspect's property is present or not.&amp;nbsp;Below query works for me when I don't use the path query.select * from myType:caseDoc as d join myAspect:caseId as s on d.cmis</description>
      <pubDate>Fri, 17 Mar 2017 14:33:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-aspect-query-with-path/m-p/19433#M8590</guid>
      <dc:creator>alfresco_one</dc:creator>
      <dc:date>2017-03-17T14:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS aspect query with path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-aspect-query-with-path/m-p/19434#M8591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Old post, but the problem here is explained by the exception: the selector is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fix is to add it. Change:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;WHERE CONTAINS('PATH:"//app:company_home/cm:FDLE/cm:CCH/cm:CCH-DROP-FOLDER/*"') &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;WHERE CONTAINS(d, 'PATH:"//app:company_home/cm:FDLE/cm:CCH/cm:CCH-DROP-FOLDER/*"') &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 20:09:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-aspect-query-with-path/m-p/19434#M8591</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-09-07T20:09:05Z</dc:date>
    </item>
  </channel>
</rss>

