Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for _id specification with client.index #31

Open
bhedge opened this issue Mar 1, 2015 · 0 comments
Open

Add support for _id specification with client.index #31

bhedge opened this issue Mar 1, 2015 · 0 comments

Comments

@bhedge
Copy link

bhedge commented Mar 1, 2015

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);
    }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant