<?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: SOLR sort depending on &amp;quot;tokenisation&amp;quot; in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/solr-sort-depending-on-quot-tokenisation-quot/m-p/130911#M35361</link>
    <description>&lt;P&gt;The same is true when talking about the "cm:creator" property, as well.&lt;/P&gt;&lt;P&gt;So, I can get the behaviour that I want by changing the "tokenized" field + reindexing the database, but this means that to get a "natural" sort I need to change the out of the box Alfresco model - and there's no easy way to do that.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 16:23:10 GMT</pubDate>
    <dc:creator>Ilistes</dc:creator>
    <dc:date>2021-03-20T16:23:10Z</dc:date>
    <item>
      <title>SOLR sort depending on "tokenisation"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-sort-depending-on-quot-tokenisation-quot/m-p/130910#M35360</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;from what I understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;each model property has a default value of "&amp;lt;tokenized&amp;gt;true&amp;lt;/tokenized&amp;gt;"&lt;/LI&gt;&lt;LI&gt;each model property can configure/override this, for example to "&amp;lt;tokenized&amp;gt;false&amp;lt;/tokenized&amp;gt;"&lt;/LI&gt;&lt;LI&gt;SOLR sort should not work if the property is tokenised, and should throw an exception ("java.lang.UnsupportedOperationException: Ordering not supported for")&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What's bothering me is that if by using Share I sort the results by "Author" - "cm:author" property having "&amp;lt;tokenized&amp;gt;true&amp;lt;/tokenized&amp;gt;" - I see no error. Sorting does work, but not correctly (probably due to the tokenization). I see the same behaviour by using Javascript Console with JS API ("fts-alfresco" query language).&lt;/P&gt;&lt;P&gt;So, I'm a bit confused here, can anybody help please:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;why does the sort even work?&lt;/LI&gt;&lt;LI&gt;why does it not sort ok (additionally, there's no OOTB/easy way to override "tokenization" of Alfresco's model)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Reference:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/content-model/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/content-services/latest/develop/repo-ext-points/content-model/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/model/contentModel.xml" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/model/contentModel.xml&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://bluefishgroup.com/insights/ecm/sorting-search-results-by-a-property-in-alfresco-with-solr/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://bluefishgroup.com/insights/ecm/sorting-search-results-by-a-property-in-alfresco-with-solr/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 20 Mar 2021 10:49:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-sort-depending-on-quot-tokenisation-quot/m-p/130910#M35360</guid>
      <dc:creator>Ilistes</dc:creator>
      <dc:date>2021-03-20T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR sort depending on "tokenisation"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/solr-sort-depending-on-quot-tokenisation-quot/m-p/130911#M35361</link>
      <description>&lt;P&gt;The same is true when talking about the "cm:creator" property, as well.&lt;/P&gt;&lt;P&gt;So, I can get the behaviour that I want by changing the "tokenized" field + reindexing the database, but this means that to get a "natural" sort I need to change the out of the box Alfresco model - and there's no easy way to do that.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 16:23:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/solr-sort-depending-on-quot-tokenisation-quot/m-p/130911#M35361</guid>
      <dc:creator>Ilistes</dc:creator>
      <dc:date>2021-03-20T16:23:10Z</dc:date>
    </item>
  </channel>
</rss>

