Re: Sort on internal lucene ID led to OOM

2020-08-05 Thread sanjay dutt
Thanks Erik.When you mentioned we can't control sorting by _docid_ . So if not client Does that mean solr internally makes such type of queries which includes sort on internal Lucene Id? And for what purpose? Sent from Yahoo Mail on Android On Wed, Aug 5, 2020 at 6:27 PM, Erick Erickson wro

Re: Sort on internal lucene ID led to OOM

2020-08-05 Thread Erick Erickson
A sort on anything can cause an OOM… That said, _all_ fields defined in your Solr schema should have docValues set to true if you sort, group, use function queries or facet on them. What’s happening is the docValues structure is being synthesized at runtime on the heap. In recent Solr releases y

Sort on internal lucene ID led to OOM

2020-08-04 Thread sanjay dutt
Hello, We were investigating one HEAP DUMP in which FielsCaceImpl has occupied around 5GB. Upon further investigation, I got to know that FieldCacheImpl$SortedDocValues occupies 90% of the memory where FieldCacheImpl$CacheKey is "id". When I checked the logs I was trying to find any query in whi