In addition to keyword searches, it is possible to search a specific field. Try using the query below in our GraphQL playground:

{
  search(title: "Indigenous art") {
    records {
      title
      contributors {
        value
      }
    }
  }
}

This query will search for records with “Indigenous art” in the title and return the title and contributor fields of the matching results. (Note that the multivalue contributors field is returned differently than title. Check our guide on returning fields for more information on this.)

You can also query multiple fields in the same search:

{
  search(title: "Indigenous art", subjects: "architecture") {
    records {
      title
      contributors {
        value
      }
    }
  }
}

Run this query in the GraphQL playground.

This query is similar to the first, except our results will include only records with ‘Indigenous art’ in the title field and ‘architecture’ in the subjects field.

See also