Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 2.77 KB

search-funders.md

File metadata and controls

54 lines (39 loc) · 2.77 KB

Search funders

The best way to search for funders is to use the search query parameter, which searches the display_name, the alternate_titles, and the description fields. Example:

{% hint style="info" %} You can read more about search here. It will show you how relevance score is calculated, how words are stemmed to improve search results, and how to do complex boolean searches. {% endhint %}

Search a specific field

You can also use search as a filter, allowing you to fine-tune the fields you're searching over. To do this, you append .search to the end of the property you are filtering for:

The following fields can be searched as a filter within funders:

Search filter Field that is searched
display_name.search display_name
description.search description

You can also use the filter default.search, which works the same as using the search parameter.

Autocomplete funders

You can autocomplete funders to create a very fast type-ahead style search function:

This returns a list of funders with the funder location set as the hint:

  "results": [
    {
        "id": "https://openalex.org/F4320306076",
        "display_name": "National Science Foundation",
        "hint": null,
        "cited_by_count": 6705777,
        "works_count": 264303,
        "entity_type": "funder",
        "external_id": "https://ror.org/021nxhr62"
    },
    ...
  ]

{% hint style="info" %} Read more in the autocomplete page in the API guide. {% endhint %}