Skip to content

How to do automation of “index,type,id” before actual json data in elastic search #1

@gvinaycse

Description

@gvinaycse

Hello,
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.
Show less

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions