Skip to content

Add support for _id specification with client.index #31

@bhedge

Description

@bhedge

Would like to have the option to specify an _id when creating an index.

The input could match the following:

client.index('index', 'type', 'my_id', {
     key1:"value 1",
     key2:"value 2"
}, function (err, res) {
    // `err` is an Error, or `null` on success.
    // `res` is the parsed ElasticSearch response data.
    if(err) {
        console.log(err);
    } else {
        console.log(res);
    }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions