<?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 Alfresco CMIS search in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-cmis-search/m-p/311115#M264245</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'm using in Java the SearchService to search custom folder on the repository using the CMIS Query language and transactional metadata to Query directly on the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To archieve this, I'm using the SearchParam like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String cmisQuery = "SELECT * FROM " + WvnEdmsModel.QNAME_TYPE_DOSSIER.toPrefixString() + " WHERE " + WvnEdmsModel.QNAME_PROP_E_SPACE_ID.toPrefixString() + " = '" + eSpaceId + "'";&lt;BR /&gt;&lt;BR /&gt;SearchParameters searchParam = new SearchParameters();&lt;BR /&gt;searchParam.setLanguage(SearchService.LANGUAGE_CMIS_ALFRESCO);&lt;BR /&gt;searchParam.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);&lt;BR /&gt;searchParam.setQuery(cmisQuery);&lt;BR /&gt;searchParam.setQueryConsistency(QueryConsistency.TRANSACTIONAL);&lt;BR /&gt;searchParam.addSort("@wvnEdms:currentStatus", true);&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't know why but the results are not ordered…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to add 'order by wvnEdms:currentStatus' to my Query. It works only for String, Integer and DateTime (see here &lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.2/concepts/intrans-metadata-query.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/concepts/intrans-metadata-query.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you an idea what I'm making wrong with searchParam.addSort ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 16:20:35 GMT</pubDate>
    <dc:creator>vbr</dc:creator>
    <dc:date>2015-11-17T16:20:35Z</dc:date>
    <item>
      <title>Alfresco CMIS search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-cmis-search/m-p/311115#M264245</link>
      <description>Hi,I'm using in Java the SearchService to search custom folder on the repository using the CMIS Query language and transactional metadata to Query directly on the database.To archieve this, I'm using the SearchParam like this &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;tring cmisQuery = "SELECT * FROM " + WvnEdmsModel.QNAME_TYPE_DOSSIER.toP</description>
      <pubDate>Tue, 17 Nov 2015 16:20:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-cmis-search/m-p/311115#M264245</guid>
      <dc:creator>vbr</dc:creator>
      <dc:date>2015-11-17T16:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco CMIS search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-cmis-search/m-p/311116#M264246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you go look at the type definition in something like CMIS Workbench, does that property show as being orderable? It might not be. For example, if you defined it in your content model as being tokenized (the default) it won't be orderable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 21:18:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-cmis-search/m-p/311116#M264246</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-09-21T21:18:31Z</dc:date>
    </item>
  </channel>
</rss>

