Is “customid” a docValues=true field? I suspect not, in which case I think this is the problem (but do be warned, I don’t spend much time in Lucene code). this.reader.document(docNumber).get("customid”)
document(docNumber) goes out to do a disk read I think. If it were docValues=true, it could be fetched from the in-memory structures instead. I don’t know how much of that is automatic at this level though. Best, Erick > On Aug 26, 2019, at 12:01 PM, Wittenberg, Lucas > <lucas.wittenb...@capgemini.com.INVALID> wrote: > > this.reader.document(docNumber).get("customid")