You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Aspire Confluence connector can receive incremental changes from Confluence plugin and Updates Listener in the form of JSON requests. If configured like that the normal Incremental crawl is no longer needed. 

Here are examples of JSON requests for various types of updates:

Space update
{
  "contentSource": "Aspire_Confluence_Source",
  "documents": [
    {
      "url": "http://10.89.26.110:8090/rest/api/space/NELA",
      "action": "update",
      "metadata": {
        "connectorSpecific": {
          "field": [
            {
              "@name": "spaceKey",
              "$": "NELA"
            }
          ]
        }
      }
    }
  ]
}
Page update
{
  "contentSource": "Aspire_Confluence_Source",
  "documents": [
    {
      "url": "http://10.89.26.110:8090/rest/api/content/8159239",
      "action": "update",
      "metadata": {
        "connectorSpecific": {
          "field": [
            {
              "@name": "confluenceId",
              "$": "8159239"
            }
          ]
        }
      }
    }
  ]
}
Attachment update
{
  "contentSource": "Aspire_Confluence_Source",
  "documents": [
    {
      "url": "http://10.89.26.110:8090/download/attachments/8159239/test.txt",
      "action": "update",
      "metadata": {
        "connectorSpecific": {
          "field": [
            {
              "@name": "confluenceId",        <------ attachment Id
              "$": "10848196"
            },
            {
              "@name": "parentType",          <------- page or blogpost. The type of the item with the attachment
              "$": "page"
            },
            {
              "@name": "parentContainerId",   <------- Item id of page or blogpost with the attachment 
              "$": "8159239"
            }
          ]
        }
      }
    }
  ]
}
Blog update
{
  "contentSource": "Aspire_Confluence_Source",
  "documents": [
    {
      "url": "http://10.89.26.110:8090/rest/api/content/3145758",
      "action": "update",
      "metadata": {
        "connectorSpecific": {
          "field": [
            {
              "@name": "confluenceId",
              "$": "3145758"
            }
          ]
        }
      }
    }
  ]
}
Item delete
{
  "contentSource": "Aspire_Confluence_Source",
  "documents": [
    {
      "url": "http://10.89.26.110:8090/rest/api/content/38244815",
      "action": "delete",
      "metadata": {
          "displayUrl": "http://10.89.26.110:8090/display/NAT/Pepotodelete",
      }
    }
  ]
}
  • No labels