<?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 Opening Alfresco document from Solr4 Search result in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312479#M265609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE style="border: 0px; font-size: 13px; color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;&lt;TBODY&gt;&lt;TR style="border: 0px;"&gt;&lt;TD class="postcell" style="border: 0px;"&gt;&lt;P class="post-text" style="margin: 0 0 5px; font-size: 15px;"&gt;I'm using Alfresco 5.1 community Edition with Solr4 configured as Search Service and Transaction queries configured as Hybrid (Solr &amp;amp; DB)&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;When I do a search in Solr GUI from the below URL&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;&lt;EM&gt;Solr Query GUI:&lt;/EM&gt; &lt;A href="https://localhost:8443/solr4/#/alfresco/query" rel="nofollow noopener noreferrer" style="color: #005999;"&gt;https://localhost:8443/solr4/#/alfresco/query&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;I get the search results in the below format with some ID &amp;amp; other info.&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;&lt;STRONG&gt;Solr Search Result&lt;/STRONG&gt; (Results JSON truncated for readability)&lt;/P&gt;&lt;PRE style="margin-bottom: 1em; padding: 5px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #eff0f1;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;{ "responseHeader": { "status": 0, "QTime": 25, "params": { "q": "testing", "defType": "dismax", "qt": "", "indent": "true", "wt": "json", "_": "1476349027637" } }, ... "docs": [ { "id": "_DEFAULT_!8000000000000040!80000000000008e3", "_version_": 0, "DBID": 2275 }, { "id": "_DEFAULT_!8000000000000072!8000000000000902", "_version_": 0, "DBID": 2306 }, { "id": "_DEFAULT_!8000000000000040!80000000000008ea", "_version_": 0, "DBID": 2282 }, { "id": "_DEFAULT_!800000000000000b!80000000000008ef", "_version_": 0, "DBID": 2287 }, { "id": "_DEFAULT_!8000000000000071!80000000000008f0", "_version_": 0, "DBID": 2288 }, { "id": "_DEFAULT_!8000000000000025!80000000000008eb", "_version_": 0, "DBID": 2283 } ] }, "processedDenies": false } &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: 1em;"&gt;I'm trying to build a UI where in these search results displayed, a user can click through to retrieve the respective document in Alfresco. Below is the Alfresco API I use to retrieve content from Alfresco.&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;&lt;EM&gt;Alfresco API URL to open a Document :&lt;/EM&gt; &lt;A href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content?id=" rel="nofollow noopener noreferrer" style="color: #005999;"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content?id=&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;A sample Alfresco document ID looks like the one shown below. I don't get such ID returned in Solr4 search results.&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;&lt;STRONG&gt;Sample Document Id:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;7edf97f4-43cf-4fe5-8099-85608776d159&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;1) What is the ID returned by Solr4 ?&lt;BR /&gt;2) How do I get the relevant Alfresco document ID to be able to retrieve the same from the search result ?&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;Thanks in advance.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2016 08:24:44 GMT</pubDate>
    <dc:creator>lvramanan</dc:creator>
    <dc:date>2016-10-14T08:24:44Z</dc:date>
    <item>
      <title>Opening Alfresco document from Solr4 Search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312479#M265609</link>
      <description>I'm using Alfresco 5.1 community Edition with Solr4 configured as Search Service and Transaction queries configured as Hybrid (Solr &amp;amp; DB)When I do a search in Solr GUI from the below URLSolr Query GUI: https://localhost:8443/solr4/#/alfresco/queryI get the search results in the below format with</description>
      <pubDate>Fri, 14 Oct 2016 08:24:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312479#M265609</guid>
      <dc:creator>lvramanan</dc:creator>
      <dc:date>2016-10-14T08:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Alfresco document from Solr4 Search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312480#M265610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "DBID" returned by SOLR is the raw database ID. The "id" is just an internally generated document ID and not associated with any data of the node. What you might want is the "ID" field which should be the NodeRef - the last uid fragment of the NodeRef (along with a version identifier) is what you'd need to use the CMIS API. Alternatively, you can also select the actual property fields for store protocol, identifier and the node uuid, but the names for these are very clunky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 11:02:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312480#M265610</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-10-14T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Alfresco document from Solr4 Search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312481#M265611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cross-posted at &lt;A href="http://stackoverflow.com/questions/40038343/opening-alfresco-document-from-solr4-search-result" title="http://stackoverflow.com/questions/40038343/opening-alfresco-document-from-solr4-search-result" rel="nofollow noopener noreferrer"&gt;Opening Alfresco document from Solr4 Search result - Stack Overflow&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 21:02:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312481#M265611</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-10-14T21:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Opening Alfresco document from Solr4 Search result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312482#M265612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NodeService has a method to get NodeRef from DBID. That's what Alfresco does in SolrJSONResultSet.java.&lt;/P&gt;&lt;P&gt;NodeRef nodeRef = nodeService.getNodeRef(dbid);&lt;/P&gt;&lt;P&gt;You can do similar "post-processing" of the data returned from Solr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:07:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/opening-alfresco-document-from-solr4-search-result/m-p/312482#M265612</guid>
      <dc:creator>zhihailiu</dc:creator>
      <dc:date>2016-10-18T20:07:47Z</dc:date>
    </item>
  </channel>
</rss>

