Search API
Get a list of instances for CQL query
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
| offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
| expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/searchResult.sample"Get a list of authorities for CQL query
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
| offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
| expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
| includeNumberOfTitles | boolean Default: true Whether to perform a search for a number of linked instances. |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/searchResult.sample"Get a list of instance ids for CQL query
| query required | string A CQL query string with search conditions. |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| Content-Type | string Content-Type header value |
"examples/InstanceIdsResult.sample"Get a list of holding ids linked to instances found by the CQL query
| query required | string A CQL query string with search conditions. |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| Content-Type | string Content-Type header value |
"examples/HoldingIdsResult.sample"Creates a job for the stream of resource ids.
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| id | string Unique ID for the job record. |
| query required | string CQL query for getting ids. |
| status | string Enum: "IN_PROGRESS" "ERROR" "COMPLETED" "DEPRECATED" Ids streaming status. |
| entityType required | string Enum: "INSTANCE" "AUTHORITY" "HOLDINGS" Type of entity for streaming ids. |
| createdDate | string Date and time when the record was created. |
"examples/streamIdsJobRequest.sample""examples/streamIdsJobResponse.sample"Provides list of facets for the record type
| recordType required | string (RecordType) Enum: "instances" "authorities" "contributors" "subjects" |
| query required | string A CQL query string with search conditions. |
| facet required | Array of strings List of facet names. |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/facetResult.sample"Get a list of holdings (only for consortium environment)
| instanceId | string UUID of the instance |
| tenantId | string Tenant ID |
| limit | integer [ 0 .. 1000 ] Default: 100 Limit the number of elements returned in the response. |
| offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
| sortBy | string Defines a field to sort by. Possible values:
|
| sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "holdings": [
- {
- "id": "string",
- "hrid": "string",
- "tenantId": "string",
- "instanceId": "string",
- "discoverySuppress": true,
- "callNumberPrefix": "string",
- "callNumber": "string",
- "callNumberSuffix": "string",
- "copyNumber": "string",
- "permanentLocationId": "string"
}
], - "totalRecords": 0
}Get a list of items (only for consortium environment)
| instanceId | string UUID of the instance |
| holdingsRecordId | string UUID of the holdings record |
| tenantId | string Tenant ID |
| limit | integer [ 0 .. 1000 ] Default: 100 Limit the number of elements returned in the response. |
| offset | integer [ 0 .. 9999 ] Default: 0 Skip over a number of elements by specifying an offset value for the query. |
| sortBy | string Defines a field to sort by. Possible values:
|
| sortOrder | string (sortOrder) Enum: "asc" "desc" Defines sorting order |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
{- "items": [
- {
- "id": "string",
- "hrid": "string",
- "tenantId": "string",
- "instanceId": "string",
- "holdingsRecordId": "string",
- "barcode": "string"
}
], - "totalRecords": 0
}Provides list of instances for browsing by call number
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 100 ] Default: 100 Limit the number of elements returned in the browse response. |
| expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
| highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. |
| precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including options |
| callNumberType | string (CallNumberType) Enum: "lc" "dewey" "nlm" "sudoc" "other" "local" Type of call number |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/searchResult.sample"Provides list of instances for browsing by classification number
| browseOptionId required | string (browseOptionType) Enum: "all" "lc" "dewey" Browse option type |
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 100 ] Default: 100 Limit the number of elements returned in the browse response. |
| expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
| highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. |
| precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including options |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/searchResult.sample"Provides list of instances for browsing by subject
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
| highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. |
| precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including options |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/searchResult.sample"Provides list of instances for browsing by contributor
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
| highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. |
| precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including options |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/browseContributorsResult.sample"Provides list of authorities by headingRef
| query required | string A CQL query string with search conditions. |
| limit | integer [ 0 .. 500 ] Default: 100 Limit the number of elements returned in the response. |
| expandAll | boolean Default: false Whether to return only basic properties or entire instance. |
| highlightMatch | boolean Default: true Whether to highlight matched resource by query input or not. |
| precedingRecordsCount | integer [ 1 .. 100 ] Number of preceding records for browsing around and around-including options |
| x-okapi-tenant required | string X-Okapi-Tenant header value |
"examples/searchResult.sample"Creates indices for passed resource name and tenant id in request header.
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| resourceName required | string Name of resource |
"examples/indexRequestBody.sample"{- "errorMessage": "string",
- "indices": [
- "string"
], - "status": "success"
}Creates mappings for passed resource name and tenant id in request header.
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| resourceName required | string Name of resource |
{- "resourceName": "string"
}{- "errorMessage": "string",
- "status": "success"
}Indexes the records into elasticsearch.
| id | string Resource id |
| type | string (resourceEventType) Enum: "UPDATE" "CREATE" "DELETE" "REINDEX" "DELETE_ALL" Resource event operation type - one of [update, create, delete, delete_all, reindex] |
| deleteEventSubType | string (resourceDeleteEventSubType) Enum: "SOFT_DELETE" "HARD_DELETE" Resource event delete operation type - one of [soft-delete, hard-delete] |
| tenant | string Tenant id |
| resourceName | string Name of resource |
| new | object Instance record new fields |
| old | object Instance record old fields |
"examples/indexRecordRequestBody.sample""examples/indexRecordResponse.sample"Update Index Dynamic Settings data.
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| resourceName required | string Resource name to set index Settings | ||||
object (indexDynamicSettings) Elasticsearch/Opensearch index dynamic settings | |||||
| |||||
{- "resourceName": "string",
- "indexSettings": {
- "numberOfReplicas": 1,
- "refreshInterval": -1
}
}{- "errorMessage": "string",
- "status": "success"
}Initiates reindex for the inventory records
| x-okapi-tenant required | string X-Okapi-Tenant header value |
| recreateIndex | boolean Default: false Boolean parameter, if set to true - tenant index must be recreated before reindex operation | ||||||
| resourceName | string Default: "instance" Resource name to run reindex for | ||||||
object (indexSettings) Elasticsearch/Opensearch index settings | |||||||
| |||||||
"examples/reindexRequest.sample"{- "id": "string",
- "jobStatus": "string",
- "submittedDate": "string"
}Save languages that will be used for analyzers
| code required | string[a-zA-Z]{3} An ISO-639-2/B compatible language code. |
| languageAnalyzer | string Custom elasticsearch analyzer for language. |
{- "code": "string",
- "languageAnalyzer": "string"
}{- "code": "string",
- "languageAnalyzer": "string"
}Update language config settings
| code required | string[a-zA-Z]{3} Language code |
| code required | string[a-zA-Z]{3} An ISO-639-2/B compatible language code. |
| languageAnalyzer | string Custom elasticsearch analyzer for language. |
{- "code": "string",
- "languageAnalyzer": "string"
}{- "code": "string",
- "languageAnalyzer": "string"
}Save feature configuration (enables or disables pre-defined optional search options)
| feature required | string (tenantConfiguredFeature) Enum: "search.all.fields" "browse.cn.intermediate.values" "browse.cn.intermediate.remove.duplicates" "browse.classifications" The feature name. |
| enabled required | boolean Action - enable or disable option |
{- "feature": "search.all.fields",
- "enabled": true
}{- "feature": "search.all.fields",
- "enabled": true
}Update feature configuration settings
| featureId required | string Enum: "search.all.fields" "browse.cn.intermediate.values" "browse.cn.intermediate.remove.duplicates" "browse.classifications" Feature id (name) |
| feature required | string (tenantConfiguredFeature) Enum: "search.all.fields" "browse.cn.intermediate.values" "browse.cn.intermediate.remove.duplicates" "browse.classifications" The feature name. |
| enabled required | boolean Action - enable or disable option |
{- "feature": "search.all.fields",
- "enabled": true
}{- "feature": "search.all.fields",
- "enabled": true
}Get all configurations for browse type
| browseType required | string (browseType) Value: "instance-classification" Browse feature type |
{- "configs": [
- {
- "id": "all",
- "shelvingAlgorithm": "lc",
- "typeIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
], - "totalRecords": 0
}Update configuration for browse type
| browseType required | string (browseType) Value: "instance-classification" Browse feature type |
| browseOptionId required | string (browseOptionType) Enum: "all" "lc" "dewey" Browse option type |
| id required | string (browseOptionType) Enum: "all" "lc" "dewey" |
| shelvingAlgorithm required | string (shelvingOrderAlgorithmType) Enum: "lc" "dewey" "default" |
| typeIds | Array of strings <uuid> [ items <uuid > ] Type IDs that should be used by the option |
{- "id": "all",
- "shelvingAlgorithm": "lc",
- "typeIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}"examples/validationErrorResponse.sample"