• Document Up to Date

Update Binary Document

Adds a binary document to the Solr index. Internally Solr will use the Tika library to extract the file content and meta-data. The request should always be a multi-part request, where the content is sent as a file part.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

The context for this API is /crafter-search, please prefix the API URLs with this context.

HTTP Verb
POST
URL
/api/2/search/update-content
Response Formats
JSON

Parameters

Name
Type
Required
Description
index_id
String

The index ID
site
String
The site name
id
String
The document ID
content
File
Binary file to upload
{param}

String



Any additional meta-data that needs
to be indexed along with the binary.
token
String
The access token.

The access token could be optional depending on the configuration.

Example

Request

POST .../api/2/search/update-content?token=myAccessToken
index_id = editorial
site = editorial
id = /site/documents/example.pdf
content = binary file...

Response

Status 200 OK

{
  "message": "OK"
}

Responses

Status
Location
Response Body
200
.../api/2/search/update-content
See example above.
500

{ "message" : "Internal server error" }
503

{ "message" : "Service unavailable, please try again later" }