Quick question: I want to get the postings for the document directly from the hit for the document. This is what I'm current doing, but wondering if I am missing a better way to get it directly from the hit, without having to use
if text in hit.matched_terms(): return hit.[reader/searcher].postings(fieldname, text).skip_to(hit.docnum).spans() else: return None
I also don't quite understand the difference between reader.postings and searcher.postings... they seem to do the same thing, but haven't wrapped my head around the code differences (is this in the docs somewhere?).
And small comment while I'm at it: it would be nice if we could store only the start characters of tokens, rather than both start and end (saves some space and only marginally less useful).
Thanks for this, and for the awesome package!