skip to Main Content

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.

2

Answers


  1. Chosen as BEST ANSWER

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

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

  2. The index looks correct. I would suggest that the code used to retrieve the documents is the issue here. Make sure you’re not tied exclusively to the vector index

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search