Description
Currently the terms are seeked eagerly in TermQuery.createWeight when creating the TermContext. This might be wasteful when scores are not needed since the query might be cached on some segments, thus seeking the term on these segments is not needed. We could change TermWeight to only seek terms in Weight.scorer when scores are not needed.