search for: ram_dir

Displaying 2 results from an estimated 2 matches for "ram_dir".

Did you mean: dma_dir
2006 Jul 05
1
search speed eclipsed by retrieval speed
...ate and search the index, in case that''s useful: I have created an index that is stored on disk. I''d like to read it back into memory and use a RAMDirectory to see what speed improvements I can get by using that. Here''s what I''m doing to create the index: ram_dir = Ferret::Store::RAMDirectory.new in_mem_index = Ferret::Index::IndexWriter.new(ram_dir, :create => true) # ... add stuff to the index in_mem_index.optimize in_mem_index.close index = Ferret::Index::Index.new(:dir => ram_dir) index.persist(''path/to/index'', tr...
2006 Jun 14
3
In memory IndexReader bug?
Hi All, Hope all is going well. I''m having trouble with the following code creating an in memory index reader - it seems to be attempting to read from a file regardless. Here''s the simple code: require ''rubygems'' require ''ferret'' a = Ferret::Index::Index.new r = Ferret::Index::IndexReader.new(nil) Running the code on my OS X machine