-
Notifications
You must be signed in to change notification settings - Fork 0
/
Indexer.txt
56 lines (54 loc) · 1.48 KB
/
Indexer.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PUT https://<service_name>.search.windows.net/indexers/<indexer_name>?api-version=2019-05-06
Content-Type: application/json
api-key: <api_key>
{
"name":"<indexer_name>",
"description":null,
"dataSourceName":"<datasource_name>",
"skillsetName":"<skillset_name>",
"targetIndexName":"<index_name>",
"disabled":null,
"schedule":null,
"parameters":{
"batchSize":null,
"maxFailedItems":null,
"maxFailedItemsPerBatch":null,
"base64EncodeKeys":false,
"configuration":{
"imageAction":"generateNormalizedImages",
"dataToExtract":"contentAndMetadata"
}
},
"fieldMappings":[
{
"sourceFieldName":"metadata_storage_path",
"targetFieldName":"metadata_storage_path",
"mappingFunction":{
"name":"base64Encode",
"parameters":null
}
},
{
"sourceFieldName":"metadata_storage_path",
"targetFieldName":"uri",
"mappingFunction":null
}
],
"outputFieldMappings":[
{
"sourceFieldName":"/document/normalized_images/*/recognizedPeople/*",
"targetFieldName":"people",
"mappingFunction":null
},
{
"sourceFieldName":"/document/imageLocation",
"targetFieldName":"location",
"mappingFunction":null
},
{
"sourceFieldName":"/document/imageTakenAt",
"targetFieldName":"taken_at",
"mappingFunction":null
}
]
}