-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Make helpers examples runnable #2483
Make helpers examples runnable #2483
Conversation
removing the double index instructoins
adding the client definition since ```bulk``` and ```es``` were used without context / definition changed from es to client to stay consistent with the quickstart naming convention
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea, thanks!
docs/sphinx/helpers.rst
Outdated
|
||
.. code-block:: python | ||
|
||
from elasticsearch import Elasticsearch, helpers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to import helpers here? Do we use it anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't; I just wanted to have at least one example of importing the rest of them, other than bulk?
But we can also skip this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it seems weird if we don't use it. Either we call helpers.bulk
or we drop this IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
Co-authored-by: Quentin Pradet <[email protected]>
Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit 8a97cc1)
adding examples of how to import the helpers;
adding the client definition since
bulk
andes
were usedwithout context / definition
changed from es to client to stay consistent with the quickstart naming convention