Hi @Mathias Opland thanks for the question. Can you share the full error message you're getting?
and yes you are right - a skillset cannot add additional records to an index. Skillsets are designed to modify the content of existing records, not to create new records.
To split the content of a SharePoint site into multiple records based on a character or word limit, you can use an Azure Function to preprocess the data before it is indexed. Here's an example of how you can do this:
Create an Azure Function that retrieves the data from SharePoint and splits it into multiple records based on a character or word limit. You can use the SharePoint REST API to retrieve the data, and a string manipulation library like Apache Commons Lang to split the text.
Configure the Azure Function to output the data in the format expected by the Azure Cognitive Search index. This may involve mapping the fields from the SharePoint data to the fields in the search index, and splitting the data into multiple records as needed.
Configure the Azure Cognitive Search indexer to use the Azure Function as a data source. You can do this by creating a custom data source that points to the Azure Function URL, and configuring the indexer to use this data source.
Run the indexer to populate the search index with the data from SharePoint, split into multiple records as needed.
By using an Azure Function to preprocess the data, you can split the content of a SharePoint site into multiple records based on a character or word limit, and index the data in Azure Cognitive Search in the desired format.
-Grace