Search code examples
azureazure-cognitive-servicesazure-cognitive-search

Azure Cognitive Search Document Name Search


I am using Azure Cognitive Search and would like to know if there is a way to have the document name also be searchable. I can not find the specific value that is associated to document name within the Azure documentation.

Anyone run into this problem before? This is what I currently have:

{
  "name": "title",
  "type": "Edm.String",
  "searchable": "true",
  ...
}

Is "title" the correct value? I also tried "documentName" as ChatGPT suggested that but I am pretty sure it was wrong since I am not able to search using the name of the document, only the contents.


Solution

  • The solution was to make sure "searchable": "true" and for the `"name": "metadata_storage_name":

    {
      "name": "metadata_storage_name",
      "type": "Edm.String",
      "searchable": "true",
      ...
    }