-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from appbaseio/ugo/jsonl-adaptor/19-12-2018
Add doc for jsonl adaptor
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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♣"]]} |