Displaying 13 results from an estimated 13 matches for "ramdirectory".
2006 Jul 05
1
search speed eclipsed by retrieval speed
Hi all,
I''ve recently started working with Ferret and I''m getting what seems to
be slow searches. I have about 10000 documents in the index, with
several fields per document, with some fields having an array of several
values that are indexed.
I am using a RAMDirectory to store the index for searching. When doing
testing, I find that searches are reasonable at around .2 to .5 seconds
per search (for simple single word searches). However, when trying to
retrieve the documents from the index, to retrieve the results ends up
taking well over 2 to 3 seconds, tota...
2006 Sep 26
1
RAMDirectory with acts_as_ferret
Hi There,
Is anyone using RAMDirectory as the data store with acts_as_ferret? I would
love some pointers on how to configure acts_as_ferret to correctly use
RAMDirectory (rather than FSDirectory).
Thanks in advance.
AC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ferret...
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
2007 Jun 24
4
Resetting ferret index before test runs
I need to reset the ferret index between test runs.
It seems like there are a few ways to reset the ferret index.
* Deleting the index directory -- is this really bad form?
* calling rebuild_index
* (any others?)
What would y''all recommend? (Sorry, I''m from Texas)
Preferably, I''d like a way to reset the index that I can integrate
into a selenium test.
-David
2006 Sep 15
2
Trouble with "updating" a document
...e - I''m sure I''m missing
something obvious, but I can''t seem to find the problem. Can someone
point out where I am going wrong please ?
Regards
Neville
===
require ''rubygems''
require ''ferret''
p Ferret::VERSION
@dir = Ferret::Store::RAMDirectory.new
@index = Ferret::Index::Index.new(:dir => @dir)
(1..1000).each do |n|
@index << {:id => "doc#{n}", :name => "name #{n}"}
end
@doc_999 = @index["doc999"]
@doc_999.load if @doc_999
p "doc_999 not found" unless @doc_999
p "doc_999 na...
2006 Oct 10
5
oddness when adding to index -
...''rubygems''
=> true
irb(main):002:0> require ''ferret''
=> true
irb(main):003:0> include Ferret
=> Object
irb(main):004:0> i = Ferret::I.new
=> #<Ferret::Index::Index:0xb77dc1f4 @options={:default_field=>:*,
:dir=>#<Ferret::Store::RAMDirectory:0xb77dc1b8>,
:analyzer=>#<Ferret::Analysis::StandardAnalyzer:0xb77dc0c8>,
:lock_retry_time=>2}, @mon_entering_queue=[], @qp=nil, @searcher=nil,
@mon_count=0, @default_field=:*, @close_dir=true, @auto_flush=false,
@open=true, @mon_owner=nil, @id_field=:id, @reader=nil,
@mon_waiti...
2006 Sep 14
1
Possiible Bug ? indexWriter#doc_count counts deleted docs after #commit
...g deleted docs. Script and output follow:
=====
require ''rubygems''
require ''ferret''
p Ferret::VERSION
@doc = {:id => ''44'', :name => ''fred'', :email => ''abc at ozemail.com.au''}
@dir = Ferret::Store::RAMDirectory.new
def add_then_delete_fred
@writer = Ferret::Index::IndexWriter.new(:dir => @dir)
p "adding doc :id=#{@doc[:id]}"
@writer << @doc
p "doc_count=#{@writer.doc_count}"
p "deleting doc :id=#{@doc[:id]}"
@writer.delete(:id, @doc[:id])
p "doc...
2006 Aug 28
1
stop words and /''s
Hi new version of ferret and acts as ferret have sorted out the scary
glibc *** linked list pointer errors, thank god! New version are good
but some searches are still not working. It is mostly the stop words
ones. For example the "For Sale/Free/Swap" fails but works when "for" is
stripped out. I have read all the recent posts regarding this issue and
failed to get it to
2007 Jan 22
7
memcache
Just curious, is there anyway to use memcache with a ferret index?
Thanks,
Ray
--
Posted via http://www.ruby-forum.com/.
2006 Sep 04
7
0.10.2 release with win32 gem
Hey all,
I''ve just released Ferret version 0.10.2. It is mostly just a bug fix
release. The only change is that a highlight method has been added to
Ferret::Index::Index. Please try it out and let me know what you
think.
The big news for this release is that there is also a binary win32 gem
included. This is the first time I''ve build a gem like this so please
let me know if
2008 Feb 01
1
Loading an index into memory?
Is there a way to tell Ferret (or AAF) to read an entire index into
memory, for faster searching? I have small index (3-4 MB) that could be
kept in memory. Or does Ferret do that automatically?
Thanks,
--Paul
--
Posted via http://www.ruby-forum.com/.
2006 Sep 28
3
A few questions about numbers and dates
...proaches people are using to manage formatting post
retrieve from Ferret.
Any pointers appreciated,
Kind Regards
Neville
==========================
require ''rubygems''
require ''ferret''
require ''date''
p Ferret::VERSION
@dir = Ferret::Store::RAMDirectory.new
@index = Ferret::Index::Index.new(:dir => @dir)
invoice = {:invoice_date => Date.new(2006,9,20), :invoice_value =>
44.50, :invoice_no => 45656, :invoice_to => ''Nev''}
@index << invoice
doc = @index[0].load
doc.fields.each do |f|
p f
p doc[f].class...
2006 Aug 28
12
Help with Multiple Readers, 1 Writer scenario
Hi,
I''m building a web server application using Ferret [thanks so much
Dave], Mongrel and Camping which works fine servicing one request at a
time, but serialises searches if more than one request arrives, so I''d
like some advice please about the best way to use multiple readers and
one writer.
Some background ... query requests which in my case are always read
only, arrive via