lucene icon indicating copy to clipboard operation
lucene copied to clipboard

LUCENE-10231: Do not cache too large PointInSetQuery

Open gf2121 opened this issue 4 years ago • 0 comments

TermInSetQuery will avoid caching queries using too much memory, but there is no such limit in PointInSetQuery and PointInSetQueryWithScore, which may have similar problems. I added the logic to these two queries, but I'm not sure whether this is the most reasonable way. May be this logic is common and we can judge this in LRUQueryCache?

#11267

gf2121 avatar Nov 12 '21 11:11 gf2121