<?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 query fails with join and contains(path) in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-with-join-and-contains-path/m-p/23299#M10181</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;I have a problem with my cmis query, any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following query works :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT * FROM cmis:document as D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;where CONTAINS(D, 'PATH:"//."')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It returns all the documents, 800 documents&lt;/P&gt;&lt;P&gt;(Actually the Path is more complicated but I simplify here to illustrate, the problem is still the same with this path)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following works too :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT * FROM cmis:document as D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;join blv:acteversion as AV 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 = AV.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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It returns all the documents that are in cmis:document and blv:acteversion, ~600 documents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try a query with the two conditions (the where and the join) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;SELECT * FROM cmis:document as D &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;join blv:acteversion as AV 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 = AV.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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;where CONTAINS(D, 'PATH:"//."')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It returns nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version is Enterprise&amp;nbsp;-&amp;nbsp;5.1.1 (r128754-b138)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2017 17:52:37 GMT</pubDate>
    <dc:creator>staarkh</dc:creator>
    <dc:date>2017-08-29T17:52:37Z</dc:date>
    <item>
      <title>cmis query fails with join and contains(path)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-with-join-and-contains-path/m-p/23299#M10181</link>
      <description>Hi,I have a problem with my cmis query, any help would be appreciated.The following query works :&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT * FROM cmis:document as D&amp;nbsp;&amp;nbsp;&amp;nbsp;where CONTAINS(D, 'PATH:"//."')It returns all the documents, 800 documents(Actually the Path is more complicated but I simplify here to illustrate, the problem is st</description>
      <pubDate>Tue, 29 Aug 2017 17:52:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-with-join-and-contains-path/m-p/23299#M10181</guid>
      <dc:creator>staarkh</dc:creator>
      <dc:date>2017-08-29T17:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: cmis query fails with join and contains(path)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-with-join-and-contains-path/m-p/23300#M10182</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;I have tried to reproduce this without your custom model&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;SELECT * FROM cmis:document as D join cm:titled as T 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 = T.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 where CONTAINS(D, 'PATH:"//."')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works as expected. The first and third queries will use SOLR; the second the database. I suggest that you configure the search sub-system to always use SOLR and go through the 3 queries again. There are a few things that could explain it.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any errors? Does the SUMMARY report have any model errors at the end?&lt;BR /&gt;Do the nodes have the hidden aspect applied?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:8080/solr4/admin/cores?action=SUMMARY&amp;amp;wt=json" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/solr4/admin/cores?action=SUMMARY&amp;amp;wt=json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:56:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-fails-with-join-and-contains-path/m-p/23300#M10182</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2017-09-19T11:56:20Z</dc:date>
    </item>
  </channel>
</rss>

