<?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: exporting search results to file  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284295#M237425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Actually what I am trying to do is adding export search button at out of box search operation after performing the search operation who can I get the search query in &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #727174;"&gt;search-min.js &lt;/SPAN&gt;&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;to write the java backend.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Nov 2016 17:43:58 GMT</pubDate>
    <dc:creator>kranthi</dc:creator>
    <dc:date>2016-11-06T17:43:58Z</dc:date>
    <item>
      <title>exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284291#M237421</link>
      <description>I want to perform operation like storing the search results to file for this we need search query from where we will get the query.After that we will pass this query into webscript.If any done with this guide me how to perform.</description>
      <pubDate>Fri, 04 Nov 2016 10:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284291#M237421</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-11-04T10:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284292#M237422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are talking about the faceted search page (you really should provide a bit more detailed information), then you can add a custom Aikau widget which listens to the ALF_SET_SEARCH_TERM and/or ALF_ADVANCED_SEARCH topics to extract the current search term / query. Such a widget could be a button you add to the toolbar of the result list. If the user clicks that button you can use the search term / query you previously extracted from those events to call a custom web script of yours that executes the query and generates the list document in the format you require.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2016 13:34:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284292#M237422</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-04T13:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284293#M237423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could solve this requirement in two main ways using WebScripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Implementing a DeclarativeWebScript using Alfresco JavaScript API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can implement your JavaScript controller executing the query and then iterating results for creating a CSV or XML content file, for example you can take a look at the following snippet:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14783652790554667 jive_text_macro" data-hasrefreshed="true" data-renderedposition="133_8_1155_160" jivemacro_uid="_14783652790554667" modifiedtitle="true"&gt;&lt;P&gt;var luceneQuery = "TYPE:\"cm:content\" AND @cm\\:name:\"yourContentName*\"";&lt;/P&gt;&lt;P&gt;var results = search.luceneSearch(luceneQuery);&lt;/P&gt;&lt;P&gt;var csvOutputContent = "Name;Description"; //csv header&lt;/P&gt;&lt;P&gt;for (var i=0; i&amp;lt;results.length; i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var currentResult = results[i]; //this is the result node reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; csvOutputContent += currentResult.name+";"+currentResults.properties["cm:description"]+"\n"; //create the single row for the CSV content&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var outputContentNode = companyhome.createFile("report.csv"); //create the report node in the repo&lt;/P&gt;&lt;P&gt;outputContentNode.content = csvOutputContent; //write the content in the node &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other informations about WebScript Script controller here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.alfresco.com/5.1/concepts/ws-controll-script.html" title="http://docs.alfresco.com/5.1/concepts/ws-controll-script.html" rel="nofollow noopener noreferrer"&gt;Web script controller script | Alfresco Documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Implementing a Declarative WebScript using Alfresco Java API&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this way you can implement your own Java Controller using for example Apache POI for creating any kind of Microsoft Office files such as Word or Excel and dropping it into the repository.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.alfresco.com/5.1/concepts/ws-and-Java.html" title="http://docs.alfresco.com/5.1/concepts/ws-and-Java.html" rel="nofollow noopener noreferrer"&gt;Java approach to web scripts | Alfresco Documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2016 17:04:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284293#M237423</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2016-11-05T17:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284294#M237424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually what I am trying to do is adding export search button at out of box search operation after performing the search operation who can I get the search query in &lt;STRONG&gt;search-min.js &lt;/STRONG&gt;to write the java backend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2016 17:43:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284294#M237424</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-11-06T17:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284295#M237425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Actually what I am trying to do is adding export search button at out of box search operation after performing the search operation who can I get the search query in &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #727174;"&gt;search-min.js &lt;/SPAN&gt;&lt;SPAN style="color: #727174; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;to write the java backend.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2016 17:43:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284295#M237425</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-11-06T17:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284296#M237426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which Alfresco version are you using? Because out-of-the-box search action in current Alfresco versions is not provided by search-min.js - that file was last used in 4.x as far as I know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2016 17:45:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284296#M237426</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-06T17:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: exporting search results to file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284297#M237427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using community 4.2 version&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2016 18:03:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exporting-search-results-to-file/m-p/284297#M237427</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2016-11-06T18:03:33Z</dc:date>
    </item>
  </channel>
</rss>

