## Not run:
# docs_get(index='shakespeare', type='line', id=10)
# docs_get(index='shakespeare', type='line', id=3)
# docs_get(index='shakespeare', type='line', id=3, source=TRUE)
#
# # Get certain fields
# docs_get(index='shakespeare', type='line', id=10, fields='play_name')
# docs_get(index='shakespeare', type='line', id=10, fields=c('play_name','speaker'))
#
# # Just test for existence of the document
# docs_get(index='plos', type='article', id=1, exists=TRUE)
# docs_get(index='plos', type='article', id=123456, exists=TRUE)
# ## End(Not run)
Run the code above in your browser using DataLab