Skip to content

UI.modern.related-document-fetch.[relatedDocumentKey].type

Configures fetching of documents related to the primary results.

Key: ui.modern.related-document-fetch.[relatedDocumentKey].type
Type: com.funnelback.config.keys.types.RelatedDocumentFetchConfig
Can be set in: profile.cfg, collection.cfg

Description

This option can be used to fetch documents related (by way of URLs recorded as metadata values) to the primary search results.

The key includes a relatedDocumentKey which indicates the name under which the related document will be stored within the response.resultPacket.results.relatedDocuments section of the data model.

The value must be one of the below forms which define the location to expect URLs of related documents:

  • metadata:[metadataClassName]
  • related:[otherRelatedDocumentKey]:[metadataClassName]

In terms of the data model, the two above cases translate to:

  • response.resultPacket.results.metaData.[metadataClassName]
  • response.resultPacket.results.relatedDocuments.[otherRelatedDocumentKey].metadata.[metadataClassName]

Default Value

No related data fetching is configured by default for most collection types.

Examples

If you have a 'previousMessageUrl' field which contains the URL of the previous message in some conversation stream, the following configuration would load it under the name 'previousMessage' with each search result.

ui.modern.related-document-fetch.previousMessage.type=metadata:previousMessageUrl

If you wished to then load the previous message to that, the following configuration would load the next previous message from the related document loaded above.

ui.modern.related-document-fetch.earlierMessage.type=related:previousMessage:previousMessageUrl

This process can be repeated for many metadata classes, and many 'hops' out from the initial search result, however be aware that such lookups can become slow if many are performed for a request.

top

Funnelback logo
v15.24.0