Displaying 20 results from an estimated 1000 matches similar to: "Index::Index.new vs. Readers and Writers"
2006 Nov 22
1
Help with Multiple Readers, 1 Writer scenario
Some time back in September, [sorry to be so slow], Dave wrote:
> When you open an IndexReader on the index it is opened up on
> that particular version (or state) of the index. So any
> operations on the IndexReader (like searches) will only show
> what was in the index at the time you opened it. Any modifications
> to the index (usually through and IndexWriter) that occur
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
2006 May 04
5
How to install Ferret to get the best performance
Hey all,
After dabbling with ActiveSearch, we''re coming back around to take
another look at Ferret.
ActiveSearch slowed to a crawl after indexing about 20k documents, each
20 lines each.
This time we may attempt to create multiple Ferret indexes (isolating
each organization''s data individually), since we eventually could have
upwards of 20k documents for some
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
2005 Nov 17
6
lock problems from concurrent processes.
Hi!
First, thanks a LOT for ferret. The API and documentation is great.
I''m trying to integrate ferret into a RoR app (DamageControl) and have
run into a problem with locks.
DamageControl consists of two processes that start up and run in
parallel. The first one is the webapp (which
is just a plain RoR app). The second is a daemon process that runs in
the background.
The daemon process
2005 Dec 02
43
ANN: acts_as_ferret
Hi all
This week I have worked with Rails and Ferret to test Ferrets (and Lucenes)
capabilities. I decided to make a mixin for ActiveRecord as it seemed the
simplest possible solution and I ended up making this into a plugin.
For more info on Ferret see:
http://ferret.davebalmain.com/trac/
The plugin is functional but could easily be refined. Anyway I want to share it
with you. Regard it as a
2005 Dec 02
43
ANN: acts_as_ferret
Hi all
This week I have worked with Rails and Ferret to test Ferrets (and Lucenes)
capabilities. I decided to make a mixin for ActiveRecord as it seemed the
simplest possible solution and I ended up making this into a plugin.
For more info on Ferret see:
http://ferret.davebalmain.com/trac/
The plugin is functional but could easily be refined. Anyway I want to share it
with you. Regard it as a
2006 Apr 28
1
Full-text Search Options Redux
Hey all,
I haven''t heard much on the list in a while re: ActiveSearch, Ferret,
Hyper Estraier, etc. in a while.
Has anyone successfully used ActiveSearch on tables with rows in the
order of hundreds of thousands, if not millions?
(in our case, each row containing anywhere from a paragraph of text to
many pages)
Here''s some background on our search efforts.
A. Hyper
2008 Jan 09
5
Parallel indexing doesn''t work?
Hi,
I''m trying to get parallelized ferret indexing working for my AAF
indices, based on the example in the O''Reilly Ferret shortcut.
However, the resulting indices after merging seem to have no actual
documents.
I went and made minimal changes to the example in the Ferret shortcut
pdf, and indeed can''t get that to work either. I''d appreciate any help
2006 Sep 22
3
Error with :create => true and existing index
I implemented a "reindex" command which simply creates an IndexWriter
with :create => true for a prexisting index.
The "reindexing" seems to start out ok, with several thousand docs
added, then Ferret throws an exception:
IO Error occured: couldn''t rename file "index\_0.tmp" to "index\_0.cfs":
<File exists>
I guess that _0.cfs is held
2006 Sep 14
1
Possiible Bug ? indexWriter#doc_count counts deleted docs after #commit
I''m playing with "updating" docs in my index, and I think I''ve found bug
with IndexWriter counting deleted docs. Script and output follow:
=====
require ''rubygems''
require ''ferret''
p Ferret::VERSION
@doc = {:id => ''44'', :name => ''fred'', :email => ''abc at
2006 Mar 01
9
Updating Index Is Very Slow
Hi,
I am experiencing very poor performance when updating my index. For
example, to update the index for 10 documents, it is taking 3 to 4
seconds. My index is currently very small... with probably less than
100 docs in it.
I have created my index as follows:
GIFT_INDEX = Index::Index.new(:path => "#{index_dir}/gift", :key =>
''id'', :auto_flush => true)
2006 Sep 14
2
Possiible Bug ? indexWriter#doc_count countsdeleted docs after #commit
Hi David,
> Deleted documents don''t get deleted until commit is called
Ok, but FYI, my experiments show that #commit doesn''t affect #doc_count,
even across ruby sessions.
On a different note, I''d like to request a variation of #add_document
which returns the doc_id of the document added, as opposed to self.
I''m trying to track down an issue with a large
2006 Mar 22
3
Rendering partials in ActionMailer?
Hello,
Is anyone out there rendering partials successfully in ActionMailer
templates?
I am having trouble with this, and wasn''t sure if it was my
configuration or something with a version of Rails I''m running.
We''ve got over 15 mailer templates, all working like a charm.
But we have a piece of shared code, that we''d really like to not have to
copy &
2006 Aug 03
2
Index.optimize
In the documentation, it says that optimize "should only be called
when the index will no longer be updated very often, but will be read
a lot". Does this mean it actually has a detrimental impact on updates
and inserts? In my project there will be many more reads than updates,
but there will still be a lot of updates. So should I be calling
Optimize once a day or something like that,
2006 Sep 21
6
EOF Error with Unit Tests
I am getting this weird EOFError when running tests using rake
When running unit tests one by one (test file by test file), this error
does not pop up. Does anyone know what is happening?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 May 23
1
acts_as_ferret: dynamic index selection
Hi
What is the be practice regards setting the index path dynamically?
My application needs to switch indexes based on the logged in user, I
put the following before_filter into my controller (the
Document.index_dir method calculates the user''s index path):
before_filter { Document.ferret_configuration[:path] =
Document.index_dir }
It seems to work, the only rough edge is that the
2006 May 19
1
imdex.update is 10 times slower than index.add_doc. Normal?
Hi,
I am seeing that
doc = index[''mykey'']
index.update ''mykey'', doc
is about 10 times slower than
doc = Document.new
doc[''id''] = ''mykey''
index << doc
It looks like #update is _much_ slower that #<<. Is it as expected?
Sergei.
--
Posted via http://www.ruby-forum.com/.
2019 Aug 03
1
segmentation fault in fs_list_get_path
Hi,
There seems to be a straightforward bug in
src/lib-storage/list/mailbox-list-fs.c:79. set->index_dir is unchecked
prior to dereferencing (unlike on line 126 in the same file, where it is
properly checked). This manifested on a FreeBSD server running dovecot
2.3.6 when clients tried to retrieve mail with subscriptions like
`~/bar/baz`. This caused the `imap` child to crash, e.g.
2007 Jun 04
2
Memory concerns ferret 11.4.
Hi list,
We just built our own ferret drb server (mostly because we don''t do
an indexing from within rails).
The ferret drb server only handles index inserts and some deletes.
Usually we make batch inserts were we retrieve a couple of hundred or
thousands of documents from a database and then inserts them inte
ferret one by one.
We call flush every 50th file. We are very impressed