Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

elasticsearch.py

Jordan Banasik edited this page Nov 18, 2019 · 3 revisions

ElasticSearch object

def __init__(self, url, endpoint = None)

Example:

ElasticSearch('https://some-es.server', )

list

GET from the given ElasticSearch object, endpoint not required.

async def list(self, endpoint = None):```

Example:

async list(endpoint = 'products/')

store

POST to the given ElasticSearch object at the specified endpoint.

async def store(self, endpoint, data):

Example:

await store('products/', ['stuff', 'stuff again', 2, False])

Clone this wiki locally