Skip to content

Commit

Permalink
Merge pull request #131 from appbaseio/ugo/jsonl-adaptor/19-12-2018
Browse files Browse the repository at this point in the history
Add doc for jsonl adaptor
  • Loading branch information
siddharthlatest authored Dec 21, 2018
2 parents 0c6d1c7 + 82cc74f commit 9ec5f6b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/importer/adaptors/jsonl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
JSONL adaptor
=============

The jsonl adaptor reads the data from jsonl file.

Here is how the configuration looks like:

src_type=jsonl
src_uri=/full/path/to/file.json
typename=typename

dest_type=elasticsearch
dest_uri=appname

The `file.json` should contain JSON lines text format, also called newline-delimited JSON.
For more information on jsonl format checkout this [link](http://jsonlines.org/).

Example:

{"name": "Gilbert", "wins": [["straight", "7♣"], ["one pair", "10♥"]]}
{"name": "Alexa", "wins": [["two pair", "4♠"], ["two pair", "9♠"]]}
{"name": "May", "wins": []}
{"name": "Deloise", "wins": [["three of a kind", "5♣"]]}

0 comments on commit 9ec5f6b

Please sign in to comment.