Push documents to the Piano Content platform.
The user must be authenticated and have write permissions to both the site and the verified site for the url.
The site must have an explicitly configured language. When a document is updated via document/update the document will have auto-recrawling disabled.
Request
The request object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
The siteId the document belongs to. |
|
|
String |
Yes |
The document url. |
|
|
String |
No |
The article id. Used for duplicate removal in Piano Content. Must be a numeric ascii value. |
|
|
String |
No |
The time when the document was published. ISO8601 (example: 2014-05-17T11:22:22+0000). |
|
|
String |
No |
The time when the document was modified. ISO8601 (example: 2014-05-17T11:22:22+0000 ). |
|
|
String |
No |
The time when the document expires. Expired content is automatically removed in Piano Content. Filtering out expired content from search results is optional so this can be added as a filter when applicable. |
|
|
String |
No |
The document's title. |
|
|
String |
No |
A description of the document. |
|
|
String |
No |
The pageclass. Valid values are |
|
|
Array of Section objects |
No |
Array of sections from the document. |
|
|
Array of Field objects |
No |
Array of profile items. |
|
|
Array of Strings |
No |
Array of author Strings. |
|
|
Image object |
No |
Image object |
Section
The section object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
No |
The heading text for the section. |
|
|
Array of Strings |
No |
The paragraphs for the section. |
Field (of type string)
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
See general rules for field below. The value will undergo shingle processing if the name ends with "_shingle". |
|
|
String |
Yes |
The field's value. |
Field (of type set)
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
type |
String |
Yes |
Must be the literal string "set". |
|
|
String |
Yes |
See general rules for the field below. |
|
|
Array of String |
Yes |
The field's value. It is an unordered set, so there should be no duplicates, and the order will not be preserved. |
Field (of type number)
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Must be the literal string "number". |
|
|
String |
Yes |
See general rules for field below. |
|
|
Number |
Yes |
The field's value. |
Field (of type time)
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Must be the literal string "time". |
|
|
String |
Yes |
See general rules for field below. |
|
|
String |
Yes |
The field's value formatted as combined date and time in UTC. Example: "2014-10-30T01:57:38.000Z". |
Field (of type geo point)
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Must be the literal string "geopoint". |
|
|
String |
Yes |
See general rules for field below. |
|
|
Geopoint |
Yes |
The field's value. |
Geopoint
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
Number |
Yes |
The latitude (between -90 and 90). |
|
|
Number |
Yes |
The longitude (between -180 and 180). |
Field (of type image)
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Must be the literal string "image". |
|
|
String |
Yes |
See general rules for field below. |
|
|
Image |
Yes |
The field's value. |
Image
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Must be a valid url that points to an image. |
|
|
Number |
Yes |
The image width. |
|
|
Number |
Yes |
The image height. |
General rules for field
-
Must either
-
start with customer prefix followed by a dash,
-
be one of the following overriding fields:
taxonomy,company,person,location,concept,entity, or -
be one of the following Open Graph string fields
og-image,og-title,og-type,og-url,og-audio,og-description,og-locale,og-site_name,og-video,og-updated_time -
For the fields
og-image,og-url,og-audio,og-video, the value must be a valid URL. -
For the field
og-updated_time, the value must be a valid ISO8601 datetime (example: 2014-05-17T11:22:22+0000). -
For the field
og-typethe value must be at most 256 characters. -
Must be less than or equal to 30 characters in length.
-
Must consist of ASCII characters that are either:
-
Lower case (a-z)
-
Hyphen (-)
-
Underscore (_)
-
Digit (0-9)
-
Multiple fields with the same
fieldvalue is allowed.
Response
The response object is an empty JSON object on success.
Content profile
A subset of fields creates a content profile, similar to the profile generated during document parsing. We generate this profile using language processing, the standard taxonomy, URL taxonomy, and custom taxonomy support. Sentiment analysis runs for supported languages when enabled for the site.
All fields feed the site's search index. Additional fields produced by content processing steps also feed the index, allowing it to integrate with our other products, for example Piano Content.
Time to live
Document time-to-live depends on the subsystem: search has 180 days; content profiles have 60 days.