manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CONNECTORS-1002) Connector CMIS Get all metadata from Alfresco
Date Wed, 06 Aug 2014 14:50:13 GMT

    [ https://issues.apache.org/jira/browse/CONNECTORS-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14087718#comment-14087718
] 

Karl Wright edited comment on CONNECTORS-1002 at 8/6/14 2:49 PM:
-----------------------------------------------------------------

So I understand that the internal metadata does not make it through from Alfresco into CMIS.

The CMIS connector working against an Alfresco repository depends completely on Alfresco's
implementation of CMIS.  It is not clear how complete Alfresco's implementation is.  The CMIS
connector code seems like it would definitely pick up most properties, PROVIDED they are explicitly
mentioned in the CMIS query you provide:

{code}
            //properties
            List<Property<?>> properties = document.getProperties();
            String id = StringUtils.EMPTY;
            for (Property<?> property : properties) {
              String propertyId = property.getId();
              
              if(CmisRepositoryConnectorUtils.existsInSelectClause(cmisQuery, propertyId)){
                
                if (propertyId.endsWith(Constants.PARAM_OBJECT_ID))
                  id = (String) property.getValue();
{code}

This is from roughly line 1129 of CMISRepositoryConnector.java.  If you can't figure out what
is going on, you can modify this code to add System.out.println() statements that should shed
some light on the problem.

Please also note that the CMIS connector may not be resilient against changes to the query
string.  To be sure, you may want to delete your old job and create a new job with the changed
query string, to be sure everything that needs to be recrawled actually gets reprocessed.
 I will create a different ticket to cover that issue.




was (Author: kwright@metacarta.com):
So I understand that the internal metadata does not make it through from Alfresco into CMIS.

The CMIS connector working against an Alfresco repository depends completely on Alfresco's
implementation of CMIS.  It is not clear how complete Alfresco's implementation is.  The CMIS
connector code seems like it would definitely pick up most properties, PROVIDED they are explicitly
mentioned in the CMIS query you provide:

{code}
            //properties
            List<Property<?>> properties = document.getProperties();
            String id = StringUtils.EMPTY;
            for (Property<?> property : properties) {
              String propertyId = property.getId();
              
              if(CmisRepositoryConnectorUtils.existsInSelectClause(cmisQuery, propertyId)){
                
                if (propertyId.endsWith(Constants.PARAM_OBJECT_ID))
                  id = (String) property.getValue();
{code}

This is from roughly line 1129 of CMISRepositoryConnector.java.  If you can't figure out what
is going on, you can modify this code to add System.out.println() statements that should shed
some light on the problem.

Please also note that the CMIS connector may not be resilient against changes to the query
string.  To be sure, you may want to delete your old job and create a new job with the changed
query string, to be sure everything that needs to be recrawled actually gets reprocessed.
 I will create a different ticket to cover that issue.

If you aren't sure what is going 

> Connector CMIS Get all metadata from Alfresco
> ---------------------------------------------
>
>                 Key: CONNECTORS-1002
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1002
>             Project: ManifoldCF
>          Issue Type: Test
>          Components: CMIS connector
>    Affects Versions: ManifoldCF 1.6.1
>            Reporter: bat
>             Fix For: ManifoldCF 1.6.1
>
>         Attachments: connector-cmis-Manifoldcf.doc
>
>
> I tested the CMIS connector developed in ManifoldCF to transfer data from Alfresco community
4.2.c to Solr 4.5.1. The connection works fine to index the content of the documents. However
it is impossible to get all the metadata which are affected by Alfresco to each Document unless
I  have configured the Solr field mapping in ManifoldCF.
> Here is an example of the metadata in Alfresco that I would like to index in Solr : cm:name,
cm:creator, cm:modifier, cm:created, cm:modified ... 
> I think the issue is the url that is being used by ManifoldCf. Do I have to reconfigure
the CMIS connector to index all metadata ?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message