Restrict search to specific fields

I have an example data set of an album and songs as follows:

{
  "title": "Clarity",
  "year": 1999,
  "songs": [
    {
      "name": "Table for Glasses",
      "length": "4:22"
    },
    {
      "name": "Lucky Denver Mint",
      "length": "3:50"
    },
    {
      "name": "Your New Aesthetic",
      "length": "2:50"
    }
  ],
  "objectID": "43113410"
}

I’m assuming it’s possible to be able to specify that a particular search should only return results if it matches certain attributs - i.e. I only want it to find album names specifically, and not return the album even if a song name matches, but I can’t find how to do it, if it is indeed possible?

1 Like