Category : elasticsearch-dsl-py

Index Mapping "review_start_datetime" : { "type" : "date" }, "review_start_time" : { "type" : "date" } Class from elasticsearch_dsl import Document, Date class DocumentX(Document): review_start_datetime = Date(format=’yyyy-MM-dd HH:mm:ss’, default_timezone="UTC") Creating Data doc = DocumentX.get(‘DEMO_54ddab6’) doc.review_start_time = datetime.datetime.now() doc.review_start_datetime = datetime.datetime.now() doc.save() While executing save method it gives below error only for review_start_datetime field not for ..

Read more

Can someone point me to how to extract the results _source from the generator when using the scan API in the elasticsearch dsl python client? for example, i’m using (from this example, elasticsearch-dsl scan) for hit in s.scan(): print(hit) I get the following <Hit(beacon/INDEX/_Mwt9mABoXXeYV0uwSC-): {‘client_number’: ‘3570’, ‘cl…}> How do I extract the dictionary from the ..

Read more