<?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 Custom sorting doesn't work for search results in Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249392#M202522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a search configuration for my custom type to allow sorting of search results using the custom metadata properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here my configuration in share-config-custom.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;config evaluator="string-compare" condition="Search"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sorting&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sort labelId="label.propert.one"&amp;gt;my:customPropOne&amp;lt;/sort&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sort labelId="label.propert.two"&amp;gt;my:customPropTwo&amp;lt;/sort&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/sorting&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/config&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The properties are displayed properly, but if I try to use them for sort (Click to the property name in the "sort by" drop down of the search result dialog), empty list has been displayed and I see no errors in log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it a bug or what I' doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vitali&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Mar 2012 11:23:34 GMT</pubDate>
    <dc:creator>webdesigner</dc:creator>
    <dc:date>2012-03-27T11:23:34Z</dc:date>
    <item>
      <title>Custom sorting doesn't work for search results in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249392#M202522</link>
      <description>Hello,I have a search configuration for my custom type to allow sorting of search results using the custom metadata properties.Here my configuration in share-config-custom.xml&amp;lt;config evaluator="string-compare" condition="Search"&amp;gt;&amp;lt;sorting&amp;gt;&amp;lt;sort labelId="label.propert.one"&amp;gt;my:customP</description>
      <pubDate>Tue, 27 Mar 2012 11:23:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249392#M202522</guid>
      <dc:creator>webdesigner</dc:creator>
      <dc:date>2012-03-27T11:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting doesn't work for search results in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249393#M202523</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;What version of Alfrecso are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SOLR sorting was not recognising the prefix form for sorting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be this?&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, 28 Mar 2012 18:41:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249393#M202523</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-03-28T18:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting doesn't work for search results in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249394#M202524</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 Alfresco 4.0 and I can search everywhere for my custom metadata (Node-Browser, Search queries over searchService - API etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These properties are also displayed in Details and Document libraries (my custom metadata-templates configuration)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sorting of the search results seems to be buggy even with standard properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I search for documents and find 2 results&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I sort for "size" and refreshed dialog contain only one document (not two!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as I said, it doesn't work with custom metadata. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;SOLR sorting was not recognising the prefix form for sorting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;It could be this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need an extra configuration for my custom model in SOLR to get it working? What should I do exactly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vitali&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2012 09:02:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249394#M202524</guid>
      <dc:creator>webdesigner</dc:creator>
      <dc:date>2012-03-29T09:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting doesn't work for search results in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249395#M202525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-13556" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-13556&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 06:32:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249395#M202525</guid>
      <dc:creator>webdesigner</dc:creator>
      <dc:date>2012-04-02T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting doesn't work for search results in Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249396#M202526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem while sorting with custom metadata properties. I receive an empty list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my stderr log I have this (I take Vitali's exemple):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:#80BF00;"&gt;17 juil. 2012 16:51:46 org.apache.solr.common.SolrException log&lt;BR /&gt;GRAVE: java.lang.UnsupportedOperationException: Ordering not supported for @{&lt;A href="http://www.mytype.com/model/content/1.0}customPropOne" rel="nofollow noopener noreferrer"&gt;http://www.mytype.com/model/content/1.0}customPropOne&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.solr.AlfrescoSolrDataModel.getSortField(AlfrescoSolrDataModel.java:1100)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.solr.AlfrescoDataType.getSortField(AlfrescoDataType.java:106)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We can see Share has transfered &lt;/SPAN&gt;&lt;STRONG&gt;my:&lt;/STRONG&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;STRONG&gt;{&lt;A href="http://www.mytype.com/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.mytype.com/model/content/1.0&lt;/A&gt;}&lt;/STRONG&gt;&lt;SPAN&gt;, so can I consider that SOLR sorting has recognised the prefix form for sorting ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know what is the problem? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vitali, have you soloved your case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ying&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 15:08:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-sorting-doesn-t-work-for-search-results-in-share/m-p/249396#M202526</guid>
      <dc:creator>ying</dc:creator>
      <dc:date>2012-07-17T15:08:34Z</dc:date>
    </item>
  </channel>
</rss>

