Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following information is intended to assist with detailed developer tasks.

Publish to Azure Blobs App Bundle

The Publish to Azure Blobs publisher sends document feeds to the Azure Blobs storage container, metadata, and the content of files extracted by Aspire connectors, in a JSON format. The feed to Azure Blobs can be customized by using a transformation script which is provided by the user.

 

Publish to Azure Blobs

Factory Name

com.searchtechnologiescom. searchtechnologies.aspire:app-azure-blob-publisher

Inputs

AspireObject from a connector's subjob with metadata and content extracted from a specific file/folder.

Outputs

A JSON transformation of the AspireObject sent to the Azure Blog storage container

Versions


Type Flags

job-input

 

Configuration

This section lists all configuration parameters that are available to configure the Publish to Azure Blobs component.

 

Element

Type

Default

Description

debug

boolean

false

If true it will log debug information from the component.

containerName

string

defaultContainer

Blob container name to write documents to. The container is created if it doesn't exist.

jsonTransform

string

${appbundle.home}/config/groovy/aspireToBlob.groovy

Location of the file containing the JSON Transformation Script. This script will be used to transform the data from Aspire as it is posted to the Azure Blob Server.

storageConnectionString

string

DefaultEndpointsProtocol=http;AccountName=myAccount;AccountKey=myKey;

Azure Storage Connection String.

transformToJson

boolean

false

If true, it will use the script indicated in the JsonTransform property to transform the JSON content.

Example Configuration

Without Transformation

<application config="com.searchtechnologies.aspire:app-azure-blob-publisher">

  <properties>

    <property name="debug">false</property>

    <property name="containerName">defaultContainer</property>

    <property name="transformToJson">false</property>

    <property name="storageConnectionString">UseDevelopmentStorage=true</property>

  </properties>

</application>


With Transformation

<application config="com.searchtechnologies.aspire:app-azure-blob-publisher">

  <properties>

    <property name="jsonTransform">${appbundle.home}/config/groovy/aspireToBlob.groovy</property>

    <property name="debug">false</property>

    <property name="containerName">defaultContainer</property>

    <property name="transformToJson">true</property>

    <property name="storageConnectionString">UseDevelopmentStorage=true</property>

  </properties>

</application>

Publish to Azure Blobs App Bundle 

...