An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
@S-A Thank you for the great answer from @Luke Murray . I am going to expand upon their answer a little further.
Yes, it is possible to automatically fill a file's metadata field with the name of the folder containing the file through the Azure portal. You can use Azure Blob Storage triggers to achieve this.
Here's how you can do it:
- Create a new Azure Function App in the Azure portal.
- Add a new Blob trigger to the function app. This will allow the function to be triggered whenever a new blob is added to the container.
- In the function code, you can use the blob's path to extract the folder name and then update the blob's metadata with the folder name.
- Save and publish the function.
Once the function is published, it will be triggered whenever a new blob is added to the container. The function will extract the folder name from the blob's path and update the blob's metadata with the folder name.
Regarding your search filtering requirement, you can use the "metadata_storage_path" field to filter the search results based on the folder name. For example, if you want to retrieve all the blobs in the "reports" folder, you can use the following filter expression:
search=*&$filter=metadata_storage_path eq '/reports/'
This will retrieve all the blobs in the "reports" folder. You can modify the filter expression to retrieve blobs from other folders as well.