How can I fetch only one field with pyes?

(Raymond Wang) #1

there are many fields in document, but I want to get only one filed. How
can I specify the condition with pyes?

i tried:

result =, indices=[index_name], fields=fields)

but failed.

any help would be appreciated.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

(system) #2