When using created resoure to create Indexer ,
curl --location 'https://test.search.windows.net/indexers?api-version=2024-05-01-preview' \
--header 'api-key: aVL4MqPqtAoQQc28aQoGSymu1SM8ioxtGl8HFUvAUVAzSeCj8Ypf' \
--header 'Content-Type: application/json' \
--data '{
"name": "sharepoint-indexer1",
"dataSourceName": "sharepoint-search",
"targetIndexName": "sharepoint-index",
"parameters": {
"batchSize": null,
"maxFailedItems": null,
"maxFailedItemsPerBatch": null,
"base64EncodeKeys": null,
"configuration": {
"indexedFileNameExtensions": ".pdf, .docx",
"excludedFileNameExtensions": ".png, .jpg",
"dataToExtract": "contentAndMetadata"
}
},
"schedule": {},
"outputFieldMappings": [
{
"sourceFieldName": "/document/content/myKeyPhrases",
"targetFieldName": "content"
}
],
"fieldMappings": [
{
"sourceFieldName": "metadata_spo_site_library_item_id",
"targetFieldName": "id",
"mappingFunction": {
"name": "base64Encode"
}
}
]
}'
Error :
{
"error": {
"code": "",
"message": "Error with data source: Unexpected keyword 'p' in query property. Please adjust your data source definition in order to proceed."
}
}