Use Document Metadata to Navigate Between Items

The connector adds metadata to each document describing the path and ID of its parent item. This means that if you query IDOL Content and your search returns a page from Confluence, you can use the metadata to retrieve the parent space or page, and search for any child pages, attachments, and comments.

The connector adds the following metadata fields to each document:

id An identifier for the item.
PARENT_ID An identifier for the item's parent.
PARENT_HIERARCHY

The position of the parent item in the Confluence hierarchy. This field contains a colon-separated list of IDs. For example, an attachment might have a PARENT_HIERARCHY that includes a space and a page:

#DREFIELD PARENT_HIERARCHY="SPACE:262146"

After your documents have been ingested you might search your IDOL index and find a document that represents a page in Confluence. The document might have the following metadata fields:

#DREFIELD id="262146"
#DREFIELD PARENT_HIERARCHY="SPACE"
#DREFIELD PARENT_ID="SPACE"

You might want to see the documents that this page is associated with. You can retrieve the parent item using the value from the PARENT_ID field:

action=Query&FieldText=MATCH{SPACE}:id

To find child items, you can take the item's own ID and perform a search against the PARENT_ID field of other documents, for example:

action=Query&FieldText=MATCH{262146}:PARENT_ID