<?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: Sort by title using lucene searchs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269756#M222886</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;SPAN&gt;you can find clues about sorting here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Queries_that_sort" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Queries_that_sort&lt;/A&gt;&lt;SPAN&gt; and here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Queries_that_sort" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Queries_that_sort&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be useful also this &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#JavaScript" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#JavaScript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 11:57:24 GMT</pubDate>
    <dc:creator>abarisone</dc:creator>
    <dc:date>2012-10-09T11:57:24Z</dc:date>
    <item>
      <title>Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269755#M222885</link>
      <description>Hello all,I would like to know Whan I have to do for sorting the query results by title.I've read that I'ts imposible to sort by tokenised properties but it must be done by other way.I've tryed creating a new property with tokenised=false and type=d:text (I've tryed with type=d:mltext as well) and s</description>
      <pubDate>Tue, 09 Oct 2012 11:39:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269755#M222885</guid>
      <dc:creator>gabriel_g</dc:creator>
      <dc:date>2012-10-09T11:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269756#M222886</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;SPAN&gt;you can find clues about sorting here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Queries_that_sort" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Queries_that_sort&lt;/A&gt;&lt;SPAN&gt; and here &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Queries_that_sort" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Queries_that_sort&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be useful also this &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#JavaScript" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#JavaScript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 11:57:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269756#M222886</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-09T11:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269757#M222887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;you can find clues about sorting here &lt;A href="http://wiki.alfresco.com/wiki/Search#Queries_that_sort" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Queries_that_sort&lt;/A&gt; and here &lt;A href="http://wiki.alfresco.com/wiki/Search#Queries_that_sort" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Queries_that_sort&lt;/A&gt;&lt;BR /&gt;It may be useful also this &lt;A href="http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#JavaScript" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Full_Text_Search_Query_Syntax#JavaScript&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Andrea&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read and use this way of querying but the problem still persisting… The matter is the title, that has different behaviour than name or another numeric field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, thank you for your reply.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 12:50:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269757#M222887</guid>
      <dc:creator>gabriel_g</dc:creator>
      <dc:date>2012-10-09T12:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269758#M222888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know Whan I have to do for sorting the query results by title.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read that I'ts imposible to sort by tokenised properties but it must be done by other way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tryed creating a new property with tokenised=false and type=d:text (I've tryed with type=d:mltext as well) and set that property from the title but it doesn't work…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give me a hint or tell me how to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:00:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269758#M222888</guid>
      <dc:creator>gabriel_g</dc:creator>
      <dc:date>2012-10-09T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269759#M222889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But you're receiving an exception or the results are not sorted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please provide the code snippet you're using for the query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:04:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269759#M222889</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2012-10-09T13:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269760#M222890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But you're receiving an exception or the results are not sorted?&lt;BR /&gt;Could you please provide the code snippet you're using for the query?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm receiving the results unsorted, and this only happen with that property and works properly with name, dates and integers (at least with what I've tried).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is quite simple:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var sortName ={&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;column: "@cm:title",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ascending: true&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;var def ={&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;query: query,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;language: "Lucene",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;sort: [sortName]&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;var nodes = search.query(def);&lt;BR /&gt;&lt;BR /&gt;&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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:12:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269760#M222890</guid>
      <dc:creator>gabriel_g</dc:creator>
      <dc:date>2012-10-09T13:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by title using lucene searchs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269761#M222891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which API are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With javascript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quoted from wiki below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Array luceneSearch(string query, string sortColumn, boolean asc) &lt;BR /&gt;Returns an array of ScriptNode satisfying the search criteria sorted by the specified sortColumn (the property name to sort on) and asc (true =&amp;gt; ascending order, false =&amp;gt; descending order). For example var nodes = search.luceneSearch("TEXT:alfresco", "@cm:modified", false);&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using java you can use the addSort on the SearchParamenters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:46:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sort-by-title-using-lucene-searchs/m-p/269761#M222891</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2012-10-09T14:46:31Z</dc:date>
    </item>
  </channel>
</rss>

