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

es-export-bulk can not support 5.x since search_type=scan is not avialable #17

Open
zqben402 opened this issue Jun 16, 2017 · 16 comments
Open

Comments

@zqben402
Copy link

zqben402 commented Jun 16, 2017

Hi
I am using es-export-bulk in 5.x but it has some compatibility issue. The search_type=scan is not available anymore in 5.x.

@zqben402 zqben402 changed the title es-import-bulk can not support 5.x since search_type=scan is not avialable es-export-bulk can not support 5.x since search_type=scan is not avialable Jun 16, 2017
@jurigis
Copy link

jurigis commented Jun 30, 2017

I forked the project and upgraded to the newest elasticsearch-js library and removed the search_type property. I've tested the changes successfully with my local 5.4.1 elasticsearch installation.

@Sujeet1604
Copy link

"es-export-bulk is not recognised as internal or external command" in windows cmd ...any help?

@jurigis
Copy link

jurigis commented Jul 8, 2017

Did you install it with the -g switch (npm install -g). You could also verify the PATH variable to contain the global install path.

@zqben402
Copy link
Author

Thanks Jurigis. So I just need to uninstall and install again to apply your changes?

@jurigis
Copy link

jurigis commented Jul 10, 2017

Yes. It should work.

@zqben402
Copy link
Author

I tried
npm uninstall -g elasticsearch-tools
and
npm install -g elasticsearch-tools
But it still throws me the error.

@jurigis
Copy link

jurigis commented Jul 10, 2017

The "npm install" should display the path where the tools are installed. Is this path in your PATH environment variable?

@zqben402
Copy link
Author

I still seeing searchType: 'scan' in both
https://github.com/skratchdot/elasticsearch-tools
and
https://github.com/jurigis/elasticsearch-tools in es-export-bulk.js.

Am I cloning the wrong version?

@zqben402
Copy link
Author

I just manually edit the es-export-bulk.js and now it works !. Thanks

@zqben402
Copy link
Author

Hi Jurigis:

I can successfully dump the document out with deleting 'scan' search type in the code. However the speed of dumping is like 7~8 times slower than before even with "sort":["_doc"] in the query.

Do you have any idea why this is slow?

@Sujeet1604
Copy link

Yeah .It worked.. I changed the PATH variable to c:/user/user_name/appdata

@abelsromero
Copy link

abelsromero commented Jan 26, 2018

thanx for the fix @jurigis !
Any chance this could be merged into master?

@jurigis
Copy link

jurigis commented Jan 27, 2018

I'm not able to merge it into the master branch. Only @skratchdot could do it. I've created a pull request. But there are several pull requests with failed integration tests.
Does anyone know how to fix the integration tests and who decides when to merge them into the master?

@skratchdot
Copy link
Owner

Sorry about this. @jurigis - I just merged your request. I don't think there are any tests in this project- but it would be great if there were. I haven't actually used this since my previous job (where it was necessary). I'll try to take another look at this and clean things up. Thanks for the PR

@skratchdot
Copy link
Owner

I've published a new version: [email protected]. Can you see if this is still an issue? I added a few tests today, but plan on adding more.

@jurigis
Copy link

jurigis commented Jan 28, 2018

Good work! With your new version the issue is solved. I've just tested it with my local elasticsearch installation.

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

5 participants