To better assist you on this, what is the data source you are indexing? Are you referring to any Azure doc for the steps?
Based on my understanding of your issue description, as outlined in this doc, the fields you want from the blob indexer: Azure Blob indexer - Azure AI Search | Microsoft Learn
- metadata_storage_name (
Edm.String
) - the file name of the blob. For example, if you have a blob /my-container/my-folder/subfolder/resume.pdf, the value of this field isresume.pdf
. - metadata_storage_path (
Edm.String
) - the full URI of the blob, including the storage account. For example, https://myaccount.blob.core.windows.net/my-container/my-folder/subfolder/resume.pdf
If you haven’t done this already, for the filter to work, the field (folderPath in this case) must be attributed as “filterable” in your index definition. Filters in text queries
If you’re not storing the value in a metadata field and instead, you’re trying to extract it from a document, there could be issues if the indexer doesn’t support field mapping for your document type, such as a markdown document. In such cases, you might need to create a custom web API skill set. This skill set would need to be invoked to perform the necessary mapping before the steps you outlined. Doc section : Supported document formats
The options listed here are supported: Limitations and considerations
If it’s for SharePoint, to filter specific folders, introduce a custom column when creating documents in SharePoint. This could be automated using a workflow or a similar process. After the indexing process, this custom column can be used as a filter during the query for documents: apply filters
Kindly let us know, I'll follow-up with you.