AnsweredAssumed Answered

Opening Alfresco document from Solr4 Search result

Question asked by lvramanan on Oct 14, 2016
Latest reply on Oct 18, 2016 by zhihailiu

I'm using Alfresco 5.1 community Edition with Solr4 configured as Search Service and Transaction queries configured as Hybrid (Solr & DB)

When I do a search in Solr GUI from the below URL

Solr Query GUI: https://localhost:8443/solr4/#/alfresco/query

I get the search results in the below format with some ID & other info.

Solr Search Result (Results JSON truncated for readability)

{ "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 } 

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.

Alfresco API URL to open a Document : http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content?id=

A sample Alfresco document ID looks like the one shown below. I don't get such ID returned in Solr4 search results.

Sample Document Id:



1) What is the ID returned by Solr4 ?
2) How do I get the relevant Alfresco document ID to be able to retrieve the same from the search result ?

Thanks in advance.