Solr Update Parser Stage

This is a simple parser for Solr’s various update formats (XML, CSV, JSON, and javaBin): https://lucene.apache.org/solr/guide/6_6/uploading-data-with-index-handlers.html

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.

Solr Update stage-specific properties

Property Description, Type
enableCsv

Enable CSV

Enables the parser to recognize and parse, CSV based Solr update messages.

type: boolean

default value: 'true'

enableJson

Enable JSON

Enables the parser to recognize and parse, JSON based Solr update messages.

type: boolean

default value: 'true'

enableXml

Enable XML

Enables the parser to recognize and parse, XML based Solr update messages.

type: boolean

default value: 'true'

enabled

Enable this Parser Stage

type: boolean

default value: 'true'

errorHandling

Error Handling

type: string

default value: 'mark'

enum: { ignore log fail mark }

id

Parser ID

type: string

default value: '78b331d2-12e6-42ae-aaf4-b5bff0fb8fe1'

inheritMediaTypes

use default media types for this Parser Stage

Indicates if parser stage should use the default media types. Unchecking this box means that ONLY the manually configured media types will be parsed by the parser and you then MUST provide at least one media type.

type: boolean

default value: 'true'

mediaTypes

Media Types for this Parser Stage

type: array of string

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: string

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: array of object

object attributes: {
  pattern : {
    display name: File name or pattern
    type: string
    description : e.g.: "z.txt" or "*.md" or "/a/*/b/f.txt" for glob; "z.txt$" or ".*\.txt$" or "^/a/[^\/]*/b/f.txt$" for regex
    }
  syntax : {
    display name: Pattern type
    type: string
    default value: 'glob'
    description : glob uses bash shell-style wildcards; regex uses Java (PCRE-style) regex
    enum: { glob regex     }

    }
  }
type

required

type: string

default value: 'solr-update'

enum: { solr-update }