[pylucene-dev] in-memory index?
darren at ontrenet.com
Fri Jun 27 10:50:27 PDT 2008
I saw the RAMDirectory examples, but they didn't quite do what I need.
The examples I saw showed how to create an in-memory index, write docs
to it, then search it. What I need is to read a disk-based index into
memory, then search it (entirely in memory, not cached). I will hop over
to the Lucene folks. Just wasn't sure if PyLucene supported that
specific behavior or not.
On Fri, 2008-06-27 at 12:43 -0400, Pete wrote:
> On Jun 27, 2008, at 12:08 PM, Andi Vajda wrote:
> > On Fri, 27 Jun 2008, Darren Govoni wrote:
> >> Hi,
> >> Is there a way to make pylucene read an on-disk index into memory and
> >> then do all the search operations on it there?
> > Yes, the same way you'd do with Java Lucene, using a RAMDirectory.
> Given sufficient RAM, your OS will end up caching the whole thing in
> memory anyway. Lucene itself does quite a lot of caching too.
> But yeah, ask the Lucene folks. ;-)
> pylucene-dev mailing list
> pylucene-dev at osafoundation.org
More information about the pylucene-dev