Skip to content

Instantly share code, notes, and snippets.

@Sealjay
Last active March 3, 2021 01:24
Show Gist options
  • Save Sealjay/00f2ca6238975c712248a7c5d08b2b6a to your computer and use it in GitHub Desktop.
Save Sealjay/00f2ca6238975c712248a7c5d08b2b6a to your computer and use it in GitHub Desktop.
cognitivesearch - indexer
{
"name": "docindexer",
"description": null,
"dataSourceName": "docs",
"skillsetName": "mergetext",
"targetIndexName": "uklegislation",
"disabled": null,
"schedule": null,
"parameters": {
"batchSize": null,
"maxFailedItems": null,
"maxFailedItemsPerBatch": null,
"base64EncodeKeys": null,
"configuration": {
"dataToExtract": "contentAndMetadata",
"allowSkillsetToReadFileData": false,
"imageAction": "generateNormalizedImages"
}
},
"fieldMappings": [
{
"sourceFieldName": "metadata_storage_name",
"targetFieldName": "id",
"mappingFunction": {
"name": "base64Encode",
"parameters": null
}
},
{
"sourceFieldName": "metadata_storage_name",
"targetFieldName": "metadata_storage_name",
"mappingFunction": null
},
{
"sourceFieldName": "metadata_title",
"targetFieldName": "title",
"mappingFunction": null
},
{
"sourceFieldName": "content",
"targetFieldName": "content",
"mappingFunction": null
}
],
"outputFieldMappings": [
{
"sourceFieldName": "/document/merged_text",
"targetFieldName": "merged_content"
}
],
"cache": null,
"encryptionKey": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment