Moving an index from one Directory to another? Solved!

2002-04-25 Thread Avi Drissman
At 6:45 PM -0500 3/7/02, I wrote: >To improve speed for our application, I'm trying to move our index >from the disk to a RAM directory when our database is opened, and >move it back to the disk when the database is closed. > >[...] > >There's only one problem--it's not working. Solved! The m

Moving an index from one Directory to another?

2002-03-07 Thread Avi Drissman
To improve speed for our application, I'm trying to move our index from the disk to a RAM directory when our database is opened, and move it back to the disk when the database is closed. The code looks something like this: -open- Directory diskDirectory = FSDirectory.getDirectory(index