Re: Question on Solr Caching

2014-12-08 Thread Manohar Sripada
Thanks Shawn, Can you please re-direct me to any wiki which describes (in detail) the differences between MMapDirectoryFactory and NRTCachingDirectoryFactory? I found this blog http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html very helpful which describes about

Re: Question on Solr Caching

2014-12-08 Thread Shawn Heisey
On 12/8/2014 2:42 AM, Manohar Sripada wrote: Can you please re-direct me to any wiki which describes (in detail) the differences between MMapDirectoryFactory and NRTCachingDirectoryFactory? I found this blog http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html very helpful

Question on Solr Caching

2014-12-04 Thread Manohar Sripada
Hi, I am working on implementing Solr in my product. I have a few questions on caching. 1. Does posting-list and term-list of the index reside in the memory? If not, how to load this to memory. I don't want to load entire data, like using DocumentCache. Either I want to use RAMDirectoryFactory

Re: Question on Solr Caching

2014-12-04 Thread Michael Della Bitta
Hi, Manohar, 1. Does posting-list and term-list of the index reside in the memory? If not, how to load this to memory. I don't want to load entire data, like using DocumentCache. Either I want to use RAMDirectoryFactory as the data will be lost if you restart If you use MMapDirectory, Lucene

Re: Question on Solr Caching

2014-12-04 Thread Manohar Sripada
Thanks Micheal for the response. If you use MMapDirectory, Lucene will map the files into memory off heap and the OS's disk cache will cache the files in memory for you. Don't use RAMDirectory, it's not better than MMapDirectory for any use I'm aware of. Will that mean it will cache the

Re: Question on Solr Caching

2014-12-04 Thread Shawn Heisey
On 12/4/2014 10:06 PM, Manohar Sripada wrote: If you use MMapDirectory, Lucene will map the files into memory off heap and the OS's disk cache will cache the files in memory for you. Don't use RAMDirectory, it's not better than MMapDirectory for any use I'm aware of. Will that mean it will