D
D
DiIce2016-05-08 11:16:48
elasticsearch
DiIce, 2016-05-08 11:16:48

How to import strings from TXT to ElasticSearch?

There is a text file for 1 billion lines in utf8 encoding in Russian.
You need to import from this file into the elasticsearch index, so that later you can have a full-text search for these lines.
Each line of the file should become a new document in the database with one field, say "keyword", which we will then search for.
How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kotofey, 2016-05-08
@DiIce

For dumps, restoring from them, transferring data from sales to dev, etc., I use this tool: elasticdump
In your case, you only need to convert the text file to json format.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question