RE: Directly use inverted index

2013-07-27 Thread Uwe Schindler
chael McCandless [mailto:luc...@mikemccandless.com] > Sent: Saturday, July 27, 2013 12:44 PM > To: Lucene Users > Subject: Re: Directly use inverted index > > You can create your own Codec and implement your own formats, e.g. > PostingsFormat controls how postings are encoded on

Re: Directly use inverted index

2013-07-27 Thread Michael McCandless
You can create your own Codec and implement your own formats, e.g. PostingsFormat controls how postings are encoded on disk. It's best to let the OS load the index into RAM ... as long as you have enough free RAM, the OS will use it to cache all hot pages from the index. We do have a RAMDirectory

Directly use inverted index

2013-07-27 Thread Airway Wong
Hi, I would like to use Lucene's inverted index directly as building block for experimental purpose. 1. How can I customize the inverted list for different format? Is there any example? 2. Is there an easy way to force load the complete index into memory? Thanks in advance.