<?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 How to sort search results by multiple fields in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-sort-search-results-by-multiple-fields/m-p/80465#M24893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;{ "query": { "query": "(TYPE:'some:type' or TYPE:'another:type') and PARENT:'workspace://SpacesStore/some-node-id'" }, "paging": { "maxItems": "100", "skipCount": "0" }, "include": [ ], "fields": [ "name", "nodeType", "modifiedAt", "createdAt" ], "sort": [ {"type":"SCORE", "field":"cm:folder", "ascending":"false"}, {"type":"FIELD", "field":"cm:name", "ascending":"true"} ] }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to retrieve some custom folder types and custom document types from a folder, and sort them first by isFolder and then by name(or createdAt or modifiedAt). Alfresco full text search works fine when i have only one sorting parameter but when i add a second one the results become weird. I am using postman for testing.&lt;BR /&gt;&lt;BR /&gt;Basically i am trying to retrieve the nodes in the same order as they are shown on Alfresco Share but i haven't been able to do so yet. I have tried lucene and cmis searches as well but no luck there either. I must be doing something wrong but i cant seem to be able to figure out what. &lt;BR /&gt;&lt;BR /&gt;How do i write the request body in such a way that the returned nodes are in proper order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2019 11:49:28 GMT</pubDate>
    <dc:creator>mmmarko</dc:creator>
    <dc:date>2019-06-05T11:49:28Z</dc:date>
    <item>
      <title>How to sort search results by multiple fields</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-sort-search-results-by-multiple-fields/m-p/80465#M24893</link>
      <description>{ "query": { "query": "(TYPE:'some:type' or TYPE:'another:type') and PARENT:'workspace://SpacesStore/some-node-id'" }, "paging": { "maxItems": "100", "skipCount": "0" }, "include": [ ], "fields": [ "name", "nodeType", "modifiedAt", "createdAt" ], "sort": [ {"type":"SCORE", "field":"cm:folder", "asce</description>
      <pubDate>Wed, 05 Jun 2019 11:49:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-sort-search-results-by-multiple-fields/m-p/80465#M24893</guid>
      <dc:creator>mmmarko</dc:creator>
      <dc:date>2019-06-05T11:49:28Z</dc:date>
    </item>
  </channel>
</rss>

