TIMDEX includes a set of filters that you can use to limit your search. The API reference for the search operation lists each available filter and how to use them. In this how-guide, we’ll look at the sourceFilter, but the process is similar with other filters. If you’re not sure what values a filter will accept, try a search that returns aggregations.

This example demonstrates a query that searches for the term “data” in the “dspace@mit” or the “abdul latif jameel poverty action lab dataverse” sources. We are requesting the fields source, sourceLink and title, which will be returned for each found record.

{
  search(searchterm: "data", sourceFilter: ["dspace@mit", "mit alma"]) {
    records {
      source
      sourceLink
      title
    }
  }
}

Run this query in the GraphQL playground.

See also