lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chong, Herb" <HCho...@bloomberg.com>
Subject RE: example of using RAMDirectory
Date Mon, 26 Jan 2004 17:05:40 GMT
thanks. that is what i arrived at after the initial responses to my query.

Herb....

-----Original Message-----
From: Hanjo Riege [mailto:hanri@cataloom.com]
Sent: Monday, January 26, 2004 12:01 PM
To: Lucene Users List
Subject: Re: example of using RAMDirectory


Hi,

this works in my program:


        RAMDirectory ramDir = new RAMDirectory();
        IndexWriter ram_writer_de = new IndexWriter(ramDir,
                            new GermanAnalyzer(), true);
        // my method to fill the index
        fillIndex(ram_writer_de);
        ram_writer_de.optimize();
        IndexWriter fs_writer_de =  new IndexWriter(HOME_DIR + "de/",
                            new GermanAnalyzer(), true);
        fs_writer_de.addIndexes(new Directory[]{ramDir});

        fs_writer_de.close();
        ram_writer_de.close();


regards

Hanjo

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message