Important
|
This stage is deprecated. Please use Forked Apache Tika Parser Stage instead. |
JSON parsing converts JSON content from a single document field into one or more new documents. This parser uses Solr’s JsonRecordReader to split JSON into sub-documents.
Tip
|
When entering configuration values in the UI, use unescaped characters, such as \t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.
|
JSON stage-specific properties
Property | Description, Type |
---|---|
enabled
Enable this Parser Stage |
type: default value: ' |
errorHandling
Error Handling |
type: default value: ' enum: { ignore log fail mark } |
id
Parser ID |
type: default value: ' |
ignoredMediaTypes
Media Types to ignore |
Documents with a media type on this list will be not be processed by this parser stage. type: |
includePath
Include root path |
Include parent element names when using a root path. type: default value: ' |
inheritMediaTypes
Match default media types in this Parser Stage |
Each parser stage has a built-in list of media types it handles by default. If this setting is true, that list will be used along with any optional additional types provided in the mediaTypes list. If this setting is false, this stage will only be selected for media types in the mediaTypes list, and the mediaTypes list becomes a mandatory property which must have at least one valid media type. type: default value: ' |
listHandling
JSON List handling |
Create a single multivalued field containing all items, or a separate index-numbered field per list item? type: default value: ' enum: { multivalued index_numbered } |
mappings
Mapping rules |
Extract parts of the document into specified fields type: object attributes: { |
mediaTypes
Media Types to match |
Documents with a media type on this list will be matched by this parser stage. See inheritMediaTypes / use default media types for more. type: |
outputFieldPrefix
Prefix parsed fields with |
Fields extracted by this parser will be prefixed with this string. The remainder of the field name will be as detected in the stream type: maxLength: 20 pattern: ^$|^[A-Za-z_][A-Za-z0-9_\-\.]+$ |
pathPatterns
File names to parse |
Specify a file name or pattern that must be matched for this parser stage to run. Forward slashes ("/") are used to join names of files inside archives with the archive name. type: object attributes: { } |
rootPath
Root path |
Use only children of this JSON pointer. type: |
splitArrays
Split arrays |
First split top-level arrays into multiple documents, and then apply other rules. type: default value: ' |
type
required |
type: default value: ' enum: { json } |