Chapter 3: Using the Bulk API | Dev Focus: Elasticsearch 2.x (Tutorial / Demo)

preview_player
Показать описание

Hey, I know you! It's me, the Siteworx Developer Focus Elasticsearch Series!

In this video, we will be using Elasticsearch's Bulk API to mass index our sample dataset. Last chapter we learned how to individually index a document, but if we did that for all 150+ of our documents every time we changed our index it would take hours! Instead, we will learn how to set up our index the way we will use for the rest of the series, which uses a script to recreate the index and bulk index our documents using the Bulk API.

Pokémon © 2002-2015 Pokémon. © 1995-2015 Nintendo/Creatures Inc./GAME FREAK inc. TM, ® and Pokémon character names are trademarks of Nintendo. No copyright or trademark infringement is intended in using Pokémon content in this series.
Рекомендации по теме
Комментарии
Автор

I noticed how you would speed up the typing part in video, or the scripts you gave to reduce any typing at all. It keeps video short and interesting :)

saurabheights
Автор

Good video in short. I have a doubt at "index, type, id" here. In the video, you had a data and converted in json and then applied "index, type, id" above of each&every data. How did you do it? I checked the GitHub you shared.

Ex:{ "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "1" } }
{ "ndex": 1, "name": "Bulbasaur" }
{ "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "2" } }
{ "ndex": 2, "name": "Ivysaur" }
{ "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "3" } }
{ "ndex": 3, "name": "Venusaur"}

How did u take or automated this format like { "index" : { "_index" : "pokedex", "_type" : "pokemon", "_id" : "1" } }, here "id" will change of each and every data right?

Thanks advance.

Vinay_Gurram
Автор

Why do we have ndex and _id, isn't that replication of data? I do understand(I think I do) that one is information of a document, whereas the other is like a unique key of a document in an index. Can you confirm my doubt and what I think is my answer to that doubt?

saurabheights
Автор

how to convert a tsv file into this desired json file?

nikita
Автор

I understand what the program does, but it's so little. I mean, almost nothing. What's the big fuss about?

jeniamtl
join shbcf.ru