87aebcd653
* Added a sample that uses search_after parameter Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com> * Moved search_after sample to samples/search folder, updated CHANGELOG and _sync sample, and added _async sample. Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com> * Solved conflicts in CHANGELOG.md Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com> --------- Signed-off-by: Nathalie Jonathan <nathhjo@amazon.com>
OpenSearch Python Samples
Most samples can be run using OpenSearch installed locally with Docker.
Admin User Password
Add the default admin password to the environment.
export OPENSEARCH_PASSWORD=myStrongPassword123!
Start the Container
docker pull opensearchproject/opensearch:latest
docker run -d -p 9200:9200 -p 9600:9600 -e OPENSEARCH_INITIAL_ADMIN_PASSWORD=$OPENSEARCH_PASSWORD -e "discovery.type=single-node" opensearchproject/opensearch:latest
Install Python Prerequisites
Install poetry.
Run Samples
poetry install
poetry run python hello/hello.py