A
A
Alexander Vishnev2018-09-03 20:20:08
NoSQL
Alexander Vishnev, 2018-09-03 20:20:08

How to load data from text file into ArangoDB database?

There is a text file (more precisely, several hundred files, 1GB+- each) with the contents of the format:
name|text
Example:
Horse|Don't eat or smoke
Rosette|Courageless as always
Pump|Also human
Tried the JSON converter "DTM Text to JSON Converter" , but it doesn't output in that format...
Here's what the JSON for ArangoDB should look like:

[
  {
     "name":"Насос"
    ,"text":"Тоже человек"
  },
  {
     "name":"Розетка"
    ,"text":"Бездушна как всегда"
  },
  {
     "name":"Лошадь"
    ,"text":"Не ела и не курила"
  }
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-09-03
@fromdns

Convert to CSV and import.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question