Async Parsing API
Table of Contents
The Async Parsing API lets you view, modify, and delete parsers in Managed Fusion. You can create a new parser using JSON, as well as view or delete parsers by unique ID. The Async Parsing API replaces the Parsers API.
For more information, view the API specification.
Configure parsers to handle and transform inbound data streams, prior to sending the data to the index pipeline. Parsers are comprised of parser stages and handle whole documents only. To parse fields within documents, use the Field Parser Index Stage.
To configure an index profile to use a specific parser, see the Index Profiles API.
Examples
List parser configuration by Parser ID
Input
curl -u USERNAME:PASSWORD https://EXAMPLE_COMPANY.b.lucidworks.cloud/async-parsing/parsers/solr-update-parser
Output
{
"id": "solr-update-parser",
"enableMediaTypeDetection": true,
"detectMediaTypeBasedOnExtension": true,
"maxParserDepth": 16,
"maxFieldLength": -1,
"parserStages": [
{
"type": "solr-update",
"enabled": true,
"mediaTypes": [],
"pathPatterns": [],
"errorHandling": "mark",
"id": "52c57d2b-b504-4023-8a4f-c5db8b471cb7",
"enableXml": true,
"enableJson": true,
"enableCsv": true,
"inheritMediaTypes": true,
"ignoredMediaTypes": [],
"outputFieldPrefix": ""
}
]
}
Update parser configuration by Parser ID
Input
curl -X PUT -u USERNAME:PASSWORD https://EXAMPLE_COMPANY.b.lucidworks.cloud/async-parsing/parsers/solr-update-parser -H 'content-type: application/json' -d '{"id": "solr-update-parser","maxParserDepth": 8}'
Output
{
"id": "solr-update-parser",
"enableMediaTypeDetection": true,
"detectMediaTypeBasedOnExtension": true,
"maxParserDepth": 8,
"maxFieldLength": 1048576,
"parserStages": []
}