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
Update API support #116
Update API support #116
Conversation
This is looking great! would you mind adding some rspec tests for this? |
I forgot "routing" in node/transport protocol. Now it's added ! I'm not comfortable with rspec, I need time, but it's in progress :-) |
Tests added : with and without upsert for all protocols. |
@Da-wei This is awesome! thanks! Unfortunately, we just updated the structure of the tests and broke them out into separate files. Do you mind rebasing off master? I suggest possible doing a reset of the tests you added, and then manually writing them into the appropriate files in the new structure. This way, it should be rather straightforward to update. let me know if you need any help! |
@talevy, after playing with rebase, tests was added to the new structure. Thanks for the docker feature, it's very appreciable. |
@Da-wei thanks for updating your pr structure and rebasing! I'm sure it wasn't easy 👍 how did you find running the tests? There seems to be some compatibility issues across docker versions, so if you can share your experience that would be awesome! I'll check out the tests now! |
I use docker version 1.6.0. and a container made of java oracle 8 and elasticsearch 1.6.0. My first attempt to run test failed because i haven't any elasticsearch:1.6 image in my local registry, I think it's missing a check or an automatic pull from public registry.
But definitively, its a time saver ! (just a question : is it normal that rspec never terminate. I always need to do Ctrl+C although results are successful) |
ah. I will update the README to reflect this. static timeout is definitely an annoyance at this time. that should get updated soon. there is some termination problems when running the Thanks! |
Hi all, rebase is done ! |
awesome @Da-wei. I will check this out now and run the tests and update you! |
lgtm! |
Merged sucessfully into master! |
@reneklacan @Da-wei @errm This has made it into a new version |
I don't know if this is the right place for this, but I am trying this feature and it does not work as I expected (but maybe my expectation is wrong). Here is what I am doing:
I am using the following elasticsearch conf for the three different imports:
Now, what happens is, when the document gets updated, by config1, the mapping gets changed to only having those 5 fields. The other five get removed. If I remove the action => "update" part from the config, then the mapping stays, but the document gets overritten by each config that runs... So, is this working as advertised? I would expect my configuration to keep my mapping, but that is not what I am experiencing. |
This PR addresses issue #16 and #114
Add the ability to update existing ES document and support of upsert (if document doesn't exists, create it)
Configuration changes :
Implementation questions/notes:
Example with http protocol:
test.conf
test.log