0

I'm using the thing elasticsearch Python wrapper. I can't figure out how to get only the _source of a document. How can I get the Python wrapper to issue a call similar to this:

http://..../index/type/id/_source

?

1 Answer 1

1

You simply need to call get_source like this:

from elasticsearch import Elasticsearch

es = Elasticsearch()

source = es.get_source(index='index', doc_type='type', id='id')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.