search for: index_writ

Displaying 12 results from an estimated 12 matches for "index_writ".

Did you mean: index_writer
2008 Jan 09
5
Parallel indexing doesn''t work?
...name} i.close end readers = [] readers << IndexReader.new("/tmp/0") readers << IndexReader.new("/tmp/1") readers << IndexReader.new("/tmp/2") readers << IndexReader.new("/tmp/3") readers << IndexReader.new("/tmp/4") index_writer = IndexWriter.new(:path => "/tmp/test") index_writer.add_readers(readers) index_writer.close() readers.each {|reader| reader.close()} i = Ferret::I.new(:path => ''/tmp/test'') res = i.search(''name*'') puts res.inspect # gives me: #<struct Ferret...
2006 Apr 19
2
Ferret EOFError creating index
...each_with_index'' c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/segment_merger.rb:334:in `merge_norms'' c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/segment_merger.rb:49:in `merge'' c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/index_writer.rb:403:in `merge_segments'' c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/index_writer.rb:351:in `flush_ram_segments'' c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0/lib/ferret/index/index_writer.rb:127:in `close'' c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.9.0...
2005 Nov 30
8
Compilation of ferret C-extension under Windows.
...sdir/ferret- e0bcfc4d8e4ef5b2678a85120e4b572ccommit.lock C:/work/opensource/1/111/test/../lib/ferret/store/fs_store.rb:234:in `obtain'' C:/work/opensource/1/111/test/../lib/ferret/store/directory.rb:133:in `while_locked'' C:/work/opensource/1/111/test/../lib/ferret/index/index_writer.rb:417:in `merge_segments'' C:/work/opensource/1/111/test/../lib/ferret/index/index_writer.rb:416:in `synchronize'' C:/work/opensource/1/111/test/../lib/ferret/index/index_writer.rb:416:in `merge_segments'' C:/work/opensource/1/111/test/../lib/ferret/index/inde...
2007 Apr 10
8
ferret-0.11.4-mswin32 not compatible with Ruby1.8.4
Just a quick note for future reference - at least for me, ferret won''t work on Ruby 1.8.4. gem install ferret Successfully installed ferret-0.11.4-mswin32 ruby -v ruby 1.8.4 (2005-12-24) [i386-mswin32] irb irb(main):001:0> require ''ferret'' A windows error message box appears - ruby.exe - Entry Point Not Found The procedure entry point rb_w32_write could not be
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 Dec 19
17
Indexing so slow......
I am indexing over 10,000 rows of data, it is very slow when it is indexing the 100,1000,10000 row, and now it is over 1 hour passed on the row 10,000. how to make it faster? here is my code: ================== doc = Document.new doc << Field.new("id", t.id, Field::Store::YES, Field::Index::UNTOKENIZED) doc << Field.new("title", t.title,
2005 Nov 17
6
lock problems from concurrent processes.
...1/lib/ferret/store/fs_store.rb:226:in `obtain'': could not obtain lock: /Users/aslakhellesoy/scm/dc_svn/branches/damagecontrol_active_record/testdata/index/ferret-11f222dc32bbe019198a2b42644196f9write.lock (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/lib/ferret/index/index_writer.rb:100:in `initialize'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/lib/ferret/index/index.rb:111:in `new'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/lib/ferret/index/index.rb:111:in `initialize'' from /usr/lib/ruby/gems/1.8/gems/ferret-0.2.1/...
2005 Dec 02
43
ANN: acts_as_ferret
...lete from index index ||= Index::Index.new(:key => :id, :path => INDEX_DIR, :create_if_missing => true, :default_field => "*") index_writer.delete(self.id.to_s) index_writer.optimize() index_writer.close() end def to_doc # Churn through the complete Active Record and add it to the Ferret document doc = Ferret::Document::Document.new self....
2005 Dec 02
43
ANN: acts_as_ferret
...lete from index index ||= Index::Index.new(:key => :id, :path => INDEX_DIR, :create_if_missing => true, :default_field => "*") index_writer.delete(self.id.to_s) index_writer.optimize() index_writer.close() end def to_doc # Churn through the complete Active Record and add it to the Ferret document doc = Ferret::Document::Document.new self....
2006 Aug 17
3
Ferret locks up when adding items to an index
...from /Applications/Locomotive2/Bundles/rails112.locobundle/ i386/lib/ruby/gems/1.8/gems/ferret-0.9.5/lib/ferret/index/ document_writer.rb:58:in `add_document'' from /Applications/Locomotive2/Bundles/rails112.locobundle/ i386/lib/ruby/gems/1.8/gems/ferret-0.9.5/lib/ferret/index/ index_writer.rb:158:in `add_document'' from /Applications/Locomotive2/Bundles/rails112.locobundle/ i386/lib/ruby/gems/1.8/gems/ferret-0.9.5/lib/ferret/index/index.rb: 298:in `<<'' from /Applications/Locomotive2/Bundles/rails112.locobundle/ i386/lib/ruby/1.8/monitor.r...
2006 Jan 10
18
Ferret with IMAP dirs
I''d like to use ferret to build an imap indexer and search utility, but want to check first to see if anyone else is working on this and offer my help. Anyone? Also, if you could provide any helpful pointers on indexing directories via ferret, it''ll be very much appreciated. I''m a lucene nuby. Thanks! John -- Posted via http://www.ruby-forum.com/.
2006 May 11
6
problem with solaris install
I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which does not have a sys/dir.h nix_io.c:5:21: sys/dir.h: No such file or directory make: *** [nix_io.o] Error 1 I couldn''t find an obvious way around this... any suggestions? Thanks, Rich Marisa Cornell Information Technologies Cornell University