<?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 Add additional content properties in opensearch results ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103188#M71904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;H All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to add additional content properties to be displayed in the search results? Currently only the description property of the document searched in displayed. Is it possible to add other content properties like modified date,author ets and display them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please give me some idea to make this change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 22:55:43 GMT</pubDate>
    <dc:creator>sanco</dc:creator>
    <dc:date>2007-08-20T22:55:43Z</dc:date>
    <item>
      <title>Add additional content properties in opensearch results ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103188#M71904</link>
      <description>H All,Is there a way to add additional content properties to be displayed in the search results? Currently only the description property of the document searched in displayed. Is it possible to add other content properties like modified date,author ets and display them?Please give me some idea to ma</description>
      <pubDate>Mon, 20 Aug 2007 22:55:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103188#M71904</guid>
      <dc:creator>sanco</dc:creator>
      <dc:date>2007-08-20T22:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add additional content properties in opensearch results ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103189#M71905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assuming you want to change the OpenSearch results UI in the web-client then unfortunately that is generated on the client by JavaScript at the moment - so you would need to modify the file 'opensearch.js' - this is a known issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The standalone OpenSearch results (in ATOM, RSS or raw HTML formats) are output by a Freemarker template - so by changing this template you can easily add additional metadata or change the look and feel of the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the files in somewhere similar to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\search&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will need this page if you want to modify the templates:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Template_Guide" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Template_Guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This page explains how to override the templates without modifying the ones in the classes dir:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#Where_do_Web_Scripts_Live.3F" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#Where_do_Web_Scripts_Live.3F&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 10:59:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103189#M71905</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-08-21T10:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add additional content properties in opensearch results ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103190#M71906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks..i was able to add additional properties in search result..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i could not find the webscripts folder anywhere….im using alfresco-community-download-2.0.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i modified the &lt;/SPAN&gt;&lt;STRONG&gt;keyword-search-atom.ftl&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN&gt;file in tomcat/../classes/alfresco/templates folder..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i found the opensearch.js file in tomcat\webapps\alfresco\scripts\ajax folder..but i could not see the changes modified by me in this file…can i modify this file ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where are the search properties defined..because i want to display the size of the file…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the part in the ftl file i modified..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#list search.results as row&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entry&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;${row.name}&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="alternate" href="${absurl(row.url)}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;icon&amp;gt;${absurl(row.icon16)}&amp;lt;/icon&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;#comment&amp;gt;TODO: What's the standard for entry icons?&amp;lt;/#comment&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;id&amp;gt;urn:uuid:${row.id}&amp;lt;/id&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;updated&amp;gt;${xmldate(row.properties.modified)}&amp;lt;/updated&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;summary&amp;gt;${row.properties.description!""} modified : ${xmldate(row.properties.modified)!""} Author : ${row.properties.author!""} User : ${row.properties.creator!""} &amp;lt;/summary&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;${row.properties.creator}&amp;lt;/name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/author&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;relevance:score&amp;gt;${row.score}&amp;lt;/relevance:score&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/entry&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/#list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;summary tag value is fetched in opensearch.js..&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried to add these properties by seeing the content properties name in alfresco .. which were like &lt;/SPAN&gt;&lt;STRONG&gt;creator,author,size,createddate,modifieddate&lt;/STRONG&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but if i do the same with &lt;/SPAN&gt;&lt;STRONG&gt;${row.properties.size!""}..&lt;/STRONG&gt;&lt;SPAN&gt;im not able to fetch the data…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where can i find these properties defined?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help me out to customize this ftl…give me some more source for me to read and implement&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2007 23:15:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103190#M71906</guid>
      <dc:creator>sanco</dc:creator>
      <dc:date>2007-08-21T23:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add additional content properties in opensearch results ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103191#M71907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to find the search parameters about the document from other document ftl fiels in templates folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I want to know what algorithm is used to calculate the relevance score in opensearch?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:darkred;"&gt;&amp;lt;relevance:score&amp;gt;${row.score}&amp;lt;/relevance:score&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;what does this value represents in terms of the relevance of document with the search terms?&lt;BR /&gt;&lt;BR /&gt;what is the relevance algorithm used to determine this score and what is its significance?&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would appreciate any kind of help offered in this direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 18:32:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103191#M71907</guid>
      <dc:creator>sanco</dc:creator>
      <dc:date>2007-08-23T18:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add additional content properties in opensearch results ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103192#M71908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 'score' value is provided by Lucene - the full-text search engine we use under the covers. We use the default Lucene scorer implementation. There are a lot of docs on lucene to be found on the net.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 11:04:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-additional-content-properties-in-opensearch-results/m-p/103192#M71908</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-03T11:04:43Z</dc:date>
    </item>
  </channel>
</rss>

