Manchester eScholar Services

Supported by The University of Manchester Library

Note: From March 2016 Manchester eScholar will be replaced with a new Research Information System called Pure. Once Pure goes live, programmatic access to data related to research outputs via the Manchester eScholar API will be permanently unavailable. To discuss existing integrations with the API please contact us via email at escholar@manchester.ac.uk.

Examples

Example jQuery widget queries

Facets

This query returns 50 matches of documents from 2012 or 2013 that belong to the School of Physics & Astronomy:


{
    "rows": 50,
    "start": 0,
    "fq": "(m.year:\"2012\" OR m.year:\"2013\") AND r.isbelongstoorg.source.facet:\"uk-ac-man-org:44\"",
    "sort": "",
    "q": "*"
}
        

Here is an example query returning 10 matches (10 is the default if rows is undefined) of documents from the School of Physics & Astronomy ordered by descending publish date:


{
            "fq": "r.isbelongstoorg.source.facet:\"uk-ac-man-org:44\"",
            "sort": "x.createddate.day desc",
            "q": "*"
}
        

In this example, documents are ordered by descending date but when displaying facets, only show the facets for year of publication and organisation:


{
            "fq": "",
            "sort": "x.createddate.day desc",
            "q": "*",
            "facet.field": ["m.year", "r.isbelongstoorg.source.facet"]
}
        

This example returns publications from the School of Computer Science matching the query "machine learning", ordered by publish date. NB: Without quotes the search would be done on "machine" OR "learning":


{
            "rows": 10,
            "start": 0,
            "fq": "r.isbelongstoorg.source.facet:\"uk-ac-man-org:29\"",
            "sort": "x.createddate.day desc",
            "q": "\"machine learning\""
}
        

The defaults for the query object are:


{
            "fq": "",
            "sort": "",
            "facet.field": ["r.isofcontenttype.source.facet", "m.ispeerreviewed",
                            "f.isfileattached", "m.name.aut.facet", "m.year",
                            "m.topic.facet", "r.isbelongsto.source.facet",
                            "r.isbelongstoorg.source.facet"]
}