Index a document (debug)
import requests
url = "https://{FUSION HOST}/api/index-pipelines/{id}/collections/{collection}/debug"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/vnd.lucidworks-document"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"stages": [
{
"type": "<string>",
"id": "<string>",
"label": "<string>",
"condition": "<string>",
"skip": true
}
],
"output": {},
"outputEncounteredCount": 123
}Index a document (debug)
The document format must be application/vnd.lucidworks-document or application/vnd.solr-document.
POST
/
index-pipelines
/
{id}
/
collections
/
{collection}
/
debug
Index a document (debug)
import requests
url = "https://{FUSION HOST}/api/index-pipelines/{id}/collections/{collection}/debug"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/vnd.lucidworks-document"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"stages": [
{
"type": "<string>",
"id": "<string>",
"label": "<string>",
"condition": "<string>",
"skip": true
}
],
"output": {},
"outputEncounteredCount": 123
}Authorizations
Basic authAPI key
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
Run the pipeline in "simulate" mode for these docs. Stages with "side-effects" are skipped.
If true, indexed documents are included in the response.
The number of documents to include in the response, with -1 implying "all".
If true, the SolrIndexStage buffers docs.
Indicates if the indexing should proceed if an error is encountered or if it should throw an exception.
Indexing request parameters. The parameters of the indexing request.
Show child attributes
Show child attributes
Body
application/vnd.lucidworks-documentapplication/vnd.solr-document
The body is of type object.
Response
200 - application/json
OK
Was this page helpful?
⌘I