I m trying to get all index document using python client but the result show me only the first document This is my python code :
res = es.search(index="92c603b3-8173-4d7a-9aca-f8c115ff5a18", doc_type="doc", body = {
size : 10000,
query : {
match_all : {}
}
})
print("%d documents found" % res[ hits ][ total ])
data = [doc for doc in res[ hits ][ hits ]]
for doc in data:
print(doc)
return "%s %s %s" % (doc[ _id ], doc[ _source ][ 0 ], doc[ _source ][ 5 ])