The following code returning me a list of documents that have the field text
.
db = TinyDB('/stream.json')
Tweet = Query()
db.search(Tweet.text.exists())
Instead I want to get only an array of the text
field values over all the documents that have text
field. It would be better to get it while reading the json instead of loading everything into the memory and then filtering it.