Is there a way to ignore any fields that don't exist on the Index or don't have a field mapping on the Indexer? Or a way to specify on the Indexer or on Import to ignore a specific field?
I am creating a Azure Search Index where the data source is CosmosDB. Because CosmosDB has a flexible schema I may periodically add new fields. I would prefer these not be indexed and it remain the original schema. Is there a way to set on either the Index or Indexer to ignore new fields (or even this specific field) when add new items to the Index?
I didn't see anything to ignore fields in the field mapping docs: https://learn.microsoft.com/en-us/azure/search/search-indexer-field-mappings
The solution depends on which model you use.
See https://learn.microsoft.com/en-us/azure/search/cognitive-search-output-field-mapping
So, the solution is not to ignore anything. You rather explicitly map the bits you want.