A plugin for metafacture that extends the standard XML module.
| Command | In | Out |
|---|---|---|
build-solr-doc |
StreamReceiver |
SolrDocumentReceiver |
handle-solr-xml |
XmlReceiver |
SolrDocumentReceiver |
to-solr |
SolrDocumentReceiver |
Void |
Builds a Solr Input Document from metafacture stream events.
The following metafacture events
startRecord("ignored")
literal("id", "1")
literal("key", "value")
endRecord()
would create the following Solr Document
{"id": "1", "key": "value" }
Atomic index updates are handled by the entity event.
startRecord("ignored")
literal("id", "1")
entity("add")
literal("name", "alice")
literal("name", "bob")
endEntity()
endRecord()
creates the following Solr Document
{"id": "1", "name": {"add": ["alice", "bob"]}}
See also Updating Parts of Documents.
-
url: URL to Solr Server. -
core: Solr Core (Default: default) -
batchSize: Number of documents per commit (Default: 1). -
commitWithinMs: Max time (in ms) before a commit will happen (Default: -1 (Disabled), See also: Solr Ref Guide - commitWithin). -
threads: Number of threads for concurrent batch processing (Default: 1). -
maxRetries: Number of max retries for non-successful commits (Default: 0). -
waitMs: Delay (in ms) before a retry will be triggered (Default: 10000).