Launch Aspire (if it's not already running). See:
To add a Publish to Microsoft Search drag a Microsoft Graph publisher rule from the Workflow Library and drop to the Workflow Tree where you want to add it. This will automatically open the Microsoft Graph publisher window for the configuration of the publisher
Local Transform File: Specify the path to your transform file. You can follow the instructions in JSON Transformation to create a custom transform file.
Local Schema File: If not specified, it will assume ExternalFile schema, otherwise it will be ExternalItem and will require the path to a JSON schema file.
Other configuration items are common to every publisher component.
Microsoft Graph allows the usage of one of two schemas: fixed ExternalFile or custom ExternalItem. ExternalItem allows limited freedom to define properties to be expected from crawled items. Needless to say, the Groovy transformation file must yield an output that matches the expected schema.
The fixed external file schema expects the following information:
This is a sample document in JSON format, as expected by the REST API:
As mentioned before, the ExternalItem schema has limited customization capabilities. It expects the following information:
When configured to use custom schema, the publisher component expects a TXT file with the following structure:
This is a the default schema file provided with the component (schemaProperties.json):
The Groovy transformation file makes it easy to output data that is customized to the client's needs and also that can be safely conveyed to Microsoft Graph through the REST API. The output of the transformation must match the expected schema structure.
This is the default Groovy transformation file that is provided with the component (aspireToMicrosoftGraphBulk.groovy):
Once you've clicked on the Add button, it will take a moment for Aspire to download all the necessary components (the Jar files) from the Maven repository and load them into Aspire. Once that's done, the publisher will appear in the Workflow Tree.
Copyright © 2024 Accenture