<?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: How to use CONTAINS on metadata ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-use-contains-on-metadata/m-p/23925#M10412</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;CMIS&amp;nbsp; CONTAINS() by default matches only content.&lt;/P&gt;&lt;P&gt;If you are using the public API it is possible to change this default.&lt;/P&gt;&lt;P&gt;There is an example &lt;A _jive_internal="true" href="https://community.alfresco.com/people/andy1/blog/2017/06/28/query-templates-in-share-and-the-public-api#jive_content_id_Search_public_API" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify the field in the query. Beware, the CMIS specification is quite limited but we support any Alfresco full text search expression in CONTAINS() - the CMIS specification is a sub-set that assumes you mean content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM my:medatas WHERE CONTAINS('my:type=TYPE1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 09:29:49 GMT</pubDate>
    <dc:creator>andy1</dc:creator>
    <dc:date>2017-09-07T09:29:49Z</dc:date>
    <item>
      <title>How to use CONTAINS on metadata ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-use-contains-on-metadata/m-p/23924#M10411</link>
      <description>Hello,I try to use the function CONTAINS in my query but I can not to get my documents with it.SELECT * FROM my:medatas WHERE my:type='TYPE1'works fine. While the query &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 * FROM my:medatas m WHERE CONTAINS(m, 'TYPE1')works (no exceptions) but I have not any documents.I want to use this functio</description>
      <pubDate>Wed, 30 Aug 2017 13:02:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-use-contains-on-metadata/m-p/23924#M10411</guid>
      <dc:creator>berguiz</dc:creator>
      <dc:date>2017-08-30T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CONTAINS on metadata ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-use-contains-on-metadata/m-p/23925#M10412</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;CMIS&amp;nbsp; CONTAINS() by default matches only content.&lt;/P&gt;&lt;P&gt;If you are using the public API it is possible to change this default.&lt;/P&gt;&lt;P&gt;There is an example &lt;A _jive_internal="true" href="https://community.alfresco.com/people/andy1/blog/2017/06/28/query-templates-in-share-and-the-public-api#jive_content_id_Search_public_API" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify the field in the query. Beware, the CMIS specification is quite limited but we support any Alfresco full text search expression in CONTAINS() - the CMIS specification is a sub-set that assumes you mean content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM my:medatas WHERE CONTAINS('my:type=TYPE1')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 09:29:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-use-contains-on-metadata/m-p/23925#M10412</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2017-09-07T09:29:49Z</dc:date>
    </item>
  </channel>
</rss>

