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] [Commented] (CONNECTORS-1449) Add support for respecting the NoCrawl flag in Sharepoint
Date Fri, 12 Apr 2019 18:54:00 GMT

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

Karl Wright commented on CONNECTORS-1449:
-----------------------------------------

Hi, the method that is used to get the SOAP for metadata for a document is the following:

{code}
                metadataValues = proxy.getFieldValues( sortedMetadataFields, encodePath(sitePath),
listID, "/Lists/" + decodedItemPath.substring(cutoff+1), dspStsWorks );

{code}

This calls:

{code}
      {
        // SharePoint 2010: Get field values some other way
        // Sharepoint 2010; use Lists service instead
        ListsWS lservice = new ListsWS(baseUrl + site, userName, password, configuration,
httpClient );
        ListsSoapStub stub1 = (ListsSoapStub)lservice.getListsSoapHandler();
        
        String sitePlusDocId = serverLocation + site + docId;
        if (sitePlusDocId.startsWith("/"))
          sitePlusDocId = sitePlusDocId.substring(1);
        
        GetListItemsQuery q = buildMatchQuery("FileRef","Text",sitePlusDocId);
        GetListItemsViewFields viewFields = buildViewFields(fieldNames);

        GetListItemsResponseGetListItemsResult items =  stub1.getListItems(docLibrary, "",
q, viewFields, "1", buildNonPagingQueryOptions(), null);
        if (items == null)
          return result;

        MessageElement[] list = items.get_any();

        final String xmlResponse = list[0].toString();
        if (Logging.connectors.isDebugEnabled()){
          Logging.connectors.debug("SharePoint: getListItems FileRef value '"+sitePlusDocId+"',
xml response: '" + xmlResponse + "'");
        }
{code}

So it is calling the Lists service to do this right now (SharePoint 2010 and higher).  For
SharePoint 2003, it used the dspsts service, but that's been broken for a while, and I see
no need to support this feature for that version of SharePoint.

If you introduce a new service or method, I will also need a configuration switch that enables
the code that calls it, or backwards compatibility will not be maintained.




> Add support for respecting the NoCrawl flag in Sharepoint
> ---------------------------------------------------------
>
>                 Key: CONNECTORS-1449
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1449
>             Project: ManifoldCF
>          Issue Type: New Feature
>          Components: SharePoint connector
>            Reporter: Markus Schuch
>            Assignee: Markus Schuch
>            Priority: Major
>             Fix For: ManifoldCF next
>
>
> There is a flag {{NoCrawl}} in sharepoint that indicates whether an object should be
crawled or not:
> Lists
> https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splist.nocrawl.aspx
> Web
> https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spweb.nocrawl.aspx
> Field
> https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spfield.nocrawl.aspx
> Wouldn't it be nice to respect that flag?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message