lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Directly use inverted index
Date Sat, 27 Jul 2013 10:43:51 GMT
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 but this is really best for tiny indices for
testing purposes: it's very GC heavy for large indices because it
always uses 1 KB byte[] to hold the files.

Mike McCandless

On Sat, Jul 27, 2013 at 4:04 AM, Airway Wong <> wrote:
> 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.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message