DetailSearch Store API functions
Table of Contents
The detail endpoint of the Query API retrieves metadata associated with a specific record.
Pass a document ID value as a string. This value is returned by the search, searchahead, and browse functions at docs.id. Alternatively, pass a JSON object to include optional parameters.
Example requests
- Required parameters
window.getSearchStore().detail('DOC_ID')
- Required and optional parameters
window.getSearchStore().detail({
id: 'DOC_ID',
fieldList: ['FIELD_1', 'FIELD_2'],
analyticsData: true
})
| The preceding example demonstrates the required parameters and some optional parameters to pass with this function. For full details on all parameters and allowed values, see the Query API configuration spec. |
Demo
The following CodePen resource demonstrates the usage of this function. Open your browser’s web console and network monitor logs and watch for activity after clicking the buttons that trigger the Search Store API function.
|
Edit the function and click the corresponding button again to see the result change. |