Types of Public Content API fields
There are different types of fields you can use or encounter when using the Public Content API.
- Root fields
-
The following are queryable root fields. All field values above should be supplied enclosed in double quotation marks.
Name of root field Remarks authorclientIdcontentseparated by language; strictproperty has a special meaning (see below)createdDatestrictproperty not supporteddynamicDatedynamicDoubledynamicLongdynamicTextitemTypelanguageFieldlocalelocationmajorVersionmetadataFieldminorVersionmodifiedDatestrictproperty not supportednamespacepublicationIdpublicationTitlerawLanguageTitleseparated by language; strictproperty has a special meaning (see below)schemaIdurl - Metadata fields
-
To query metadata fields, use the
metadataFieldfield, specifying the metadata field name (keysarray), the value you're looking for (value) and the data type of the field (type). - Language-specific fields
-
To search for content in a specific language, use
languageFieldwith the subfieldskey(the field you want to search, saycontent),value(the text you want to search for), andlanguage(the language in which you want to search). - Non-searchable fields
- Any fields that were configured as non-indexable in Content Manager are in the OpenSearch database, but are not searchable. The only way to retrieve the content of such fields is by including them in the search results of a search for a different field.
-
Fields that can be retrieved as a
searchResult -
The following fields can be retrieved as a search result:
Field name Data type Remarks authorStringbinaryAuthorStringExtracted by Apache Tika plugin for OpenSearch binaryContentLengthLongExtracted by Apache Tika plugin for OpenSearch binaryContentTypeStringExtracted by Apache Tika plugin for OpenSearch binaryCreatedDateStringExtracted by Apache Tika plugin for OpenSearch binaryFileNameStringExtracted by Apache Tika plugin for OpenSearch binaryLanguageStringExtracted by Apache Tika plugin for OpenSearch binaryTitleStringExtracted by Apache Tika plugin for OpenSearch conceptSchemesStringcreatedDateStringfieldsMapContains dynamic and non-dynamic metadata highlightedMapRetrievable only if highlighting was enabled in the search request idStringitemTypeStringlocaleStringlocationStringmainContentFieldStringmajorVersionStringminorVersionStringmodifiedDateStringnamespaceStringpublicationIdIntpublicationTitleStringrawContentStringrawLanguageTitleStringschemaIdStringscoreFloaturlString