Retrieving Data from Index Fields

By default, searches only return the IDs of the items that match the search constraints. To include additional information, you can use the return-fields parameter to specify which index fields to include in the results.

To retrieve source data for result-enabled fields, you specify the return-fields parameter in the query string. You can specify a single return field, or up to 10 fields as a comma-separated list. For example, to include the jurisdiction, education level, and default text_relevance score in the search results:

../search?q=read+write&return-fields=description,jurisdiction,education_level,text_relevance

The specified fields will be included for each hit:

{
    "id":"s112c640",
    "data":{
        "description":"...Read, write, improvise and compose melodies and accompaniments....",
        "jurisdiction":["Ohio"],
        "education_level":["1"],
        "text_relevance":["308"]
    }
}

Note
To find out which fields are result-enabled see Field Names and Types.