diff --git a/docs/importer/adaptors/jsonl.md b/docs/importer/adaptors/jsonl.md new file mode 100644 index 0000000000000000000000000000000000000000..21de2e6130e89691d5de09a266446052a98db01f --- /dev/null +++ b/docs/importer/adaptors/jsonl.md @@ -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♣"]]} \ No newline at end of file