Doing simple Lucene-ish things

hi all, first time using ES discuss. (And I posted the same question to ES slack as I don't know where this community mostly hangs?)

At the moment I'm using trial ES serverless resources, and the python API. I used to know Lucene pretty well, and trying to do things that used to be straight-forward, eg: How can I get the full list of keyword/tokens in an index for fields text and desc and iterate over them to get document counts? How about if it is a named entity recognition index with keywords put in ner_desc.entities.entity ? Thanks for any hints, eg pointers to how/if ES reveals lower-level Lucene features.