...
Expand |
---|
title | Search API Request Parameters |
---|
|
Parameter | Datatype | Description |
---|
query | String | The search term(s). See Query Syntax for information on forming complex queries and examples. | qf | String | Query Refinement. This parameter can be defined more than once. See Query Syntax page for more information. | reusability | String | Filter by copyright status. Possible values are open, restricted or permission. | media | Boolean | Filter by records where an URL to the full media file is present in the edm:isShownBy or edm:hasView metadata and is resolvable. | thumbnail | Boolean | Filter by records where a thumbnail image has been generated for any of the WebResource media resources (thumbnail available in the edmPreview field). | landingpage | Boolean | Filter by records where the link to the original object on the providers website (edm:isShownAt) is present and verified to be working. | colourpalette | String | Filter by images where one of the colours of an image matches the provided colour code. You can provide this parameter multiple times, the search will then do an 'AND‘AND' search on all the provided colours. See: Colour Palette“Colour Palette” under “query, filter and faceting fields” | theme | String | Restrict the query over one of the Europeana Thematic Collections. The possible values are: archaelogy archaeology, art, fashion, industrial, manuscript, map, migration, music, nature, newspaper, photography, sport, ww1. | sort | String | Sorting records in ascending or descending order of search fields. The following fields are supported: score (relenvancy relevancy of the search result), timestamp_created, timestamp_update, europeana_id, COMPLETENESS, is_fulltext, has_thumbnails, and has_media. Sorting on more than one field is possible by supplying as using comma-separated values. It is also possible to randomly order items by using the keyword "random" instead of a field name. You can also request for a fixed random order by indicating a seed "random_SEED" which is useful when paginating along the same randomized order. Use: field_name+sort_order. Examples: sort=timestamp_update+desc sort=random+asc sort=random_12345+asc | profile | String | A profile parameter which controls the format and richness of the response. | rows | Number | The number of records to return. Maximum is 100. Defaults to 12. See pagination. | start | Number | The item in the search results to start with when using cursor-based pagination. First item is 1. Defaults to 1. | cursor | String | A cursor mark from where to start the search result set when using deep pagination. Set to * to start cursor-based pagination. | callback | String | Name of a client side callback function, see JSONP. |
|
Response
A response from the Search API is always formatted in JSON and will contain a number of fields that present information about the handling of the request, while the concrete information about the record is presented in the "items" field (see Metadata Sets).
Expand |
---|
title | Search API Response Parameters |
---|
|
Field | Datatype | Description |
---|
apikey | String | the authentication parameter sent out by the client (the wskey parameter) | action | String | the name of the API method that was called | success | Boolean | a boolean (true/false) flag denoting the successful execution of the call | statsDuration | Number | the time (in milliseconds) taken to serve the request | requestNumber | Number | a positive number denoting the number of request by this API key within the last 24 hours | params | Object | The original request parameters. If an invalid request parameter was submitted, this response parameter will contain the default value (see individual calls for the default values). Shown up only if the profile parameter contains "params". | itemsCount | Number | The number of retrieved records | totalResults | Number | The total number of results | nextCursor | String | Encoded string to pass along to the cursor to navigate to the next page in the search result set. See Pagination. | items | Array (Item) | This is a collection of search results. Each item is represented by a summary of the metadata record. The actual content is dependent of the profile parameter. | facets | Array (Facet) | A collection of facets that describe the resultant dataset. | breadcrumbs | Array (Breadcrumb) | A collection of search queries that were applied in this call. |
|
...
Expand |
---|
title | List of error responses |
---|
|
Field | Datatype | Description |
---|
apikey | String | The authentication parameter sent out by the client (the wskey parameter) | success | Boolean | A boolean (true/false) flag denoting the successful execution of the call | statsDuration | Number | The time (in milliseconds) taken to serve the request | error | String | If the call was not successful, this fields will contain a detailed text message. See Error Codes for more information. |
|
The following kinds of errors error codes can be returned by the Record API:
...
...
Expand |
---|
title | List of Search fields outside of EDM |
---|
|
Search Field | Datatype | Result Field | Description |
---|
europeana_id | String | id | The Europeana ID of the record. | timestamp | Date | | | timestamp_created | Date | timestamp_created timestamp_created_epoch | The date when record was created (formatted as ISO 8601) | timestamp_update | Date | timestamp_update timestamp_update_epoch | The date when record was last updated (formatted as ISO 8601) | europeana_completeness | Number | europeanaCompleteness | An internal Europeana measure of the completeness of the metadata of the record, based on the availability of mandatory and optional schema fields. It is measured as a number from 1 to 10 and serves as indicator of the metadata quality. | COMPLETENESS | String | completeness |
|
Language-specific Search Fields
In EDM, most of the properties that accept a Literal may be language tagged, meaning having a language code that determine the field has a tag that describes the language of the text using the ISO 639-2 standard. To allow for a language-specific search on such properties, the Search API defines a field for each of the language variations that appear in our repository while keeping the base field with all the values in all language variations. As opposed to the base field which typically has datatype Text (some fields may also be defined as String), the language-specific fields are always of type String to allow for faceting with the complete value (with no tokenization), see datatypes “datatypes for search fields” below for more details. If a language-specific field is part of a metadata set, it can also be output in the response (see “Language-Specific Result Fields” under the “Metadata Sets” Heading).
The following table shows the base and language-specific search fields for the dc:creator property:
Search Field | Search Datatype | Result Field |
---|
proxy_dc_creator | Text | dcCreator |
proxy_dc_creator.* | String | dcCreatorLangAware |
Search Fields defined in EDM
EDM defines an extensive list of class classes and properties. In the Search API only a subset of these, corresponding to the ones found to be the most commonly used, can be used to search in the repository. These fields are listed in this section.
The ML (ie. multilingual) column of the table below marks the fields that have multilingual variations. To learn more a
Expand |
---|
title | List of Search Fields defined in EDM |
---|
|
Notes: 1 This field has been deprecated with edmDatasetName. This change followed the change in EDM to rename to edm:collectionName to edm:datasetName. We will keep support for edmCollectionName for a grace period, but on January 2018, we will return only edmDatasetName so please update your API client. |
...