<?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 with custom property issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275091#M228221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running a CMIS Query against an Alfresco Labs 4.0d repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The query uses an aspect and a custom property which is a String. The query looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT d.cmis:objectid FROM cmis:document as d join sa:myCustomAspect as g on d.cmis:objectid = g.cmis:objectid&amp;nbsp; WHERE g.sa:myCustomProperty like 'Hello'&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The query as above executes and finds all the documents which have 'Hello' in the myCustomProperty property. e.g 'Hello', 'Hello World' e.t.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if I change the search string from 'Hello' to 'Hello World', documents which have 'Hello World' set in the property are not returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried several different aspect and properties, but each time a search string has a space in it when comparing against a custom property, no results are returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a seperate test I tried a similar query without using a custom property and the results were returned as expected:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SELECT d.cmis:objectid FROM cmis:document as d&amp;nbsp; WHERE d.cmis:name LIKE 'Hello World'&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Am I missing something from my first query above which will allow it to match against strings with spaces?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 14:48:38 GMT</pubDate>
    <dc:creator>mikemars</dc:creator>
    <dc:date>2012-03-14T14:48:38Z</dc:date>
    <item>
      <title>CMIS Query with custom property issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275091#M228221</link>
      <description>Hi,I am running a CMIS Query against an Alfresco Labs 4.0d repository.The query uses an aspect and a custom property which is a String. The query looks like&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ELECT d.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectid FROM cmis:document as d join sa:myCustomAspect as g on d.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectid = g.cmis&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectid&amp;nbsp; WHERE g.sa:myCustomProperty li</description>
      <pubDate>Wed, 14 Mar 2012 14:48:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275091#M228221</guid>
      <dc:creator>mikemars</dc:creator>
      <dc:date>2012-03-14T14:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with custom property issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275092#M228222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using equals instead of like. Despite what you might think, it isn't an exact match and appears to behave more like a like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 17:14:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275092#M228222</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-20T17:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with custom property issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275093#M228223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks Jeff, that has worked!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 17:00:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275093#M228223</guid>
      <dc:creator>mikemars</dc:creator>
      <dc:date>2012-03-21T17:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query with custom property issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275094#M228224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also set the tokenisation mode for the property to "both" in the model - your field will then behave as you would expect in SQL (as cm:name does).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 19:40:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-with-custom-property-issue/m-p/275094#M228224</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-03-21T19:40:28Z</dc:date>
    </item>
  </channel>
</rss>

