search for: redleafsoft

Displaying 10 results from an estimated 10 matches for "redleafsoft".

2006 Jun 15
10
Finding out all terms from search results. How?
...values) from one of the fields from a set of documents returned by search. In other words, I have indexed documents with two fields. I do search on one field and then want to know all other field''s values from fount documents. How? -- Sergei Serdyuk Red Leaf Software LLC web: http://redleafsoft.com -- Posted via http://www.ruby-forum.com/.
2006 Jun 15
1
Ferret::Analysis::PerFieldAnalyzerWrapper is not exported
Hi, I am on Ferret 0.9.3 and it seems to me that Ferret::Analysis::PerFieldAnalyzerWrapper is not available in ferret_ext. -- Sergei Serdyuk Red Leaf Software LLC web: http://redleafsoft.com -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
1
Upload corrupts images. Any ideas why?
...z0-9._]/, '''') File.open(@server_path + @filename, "w") { |f| f.write(@params[''NewFile''].read) } rescue @error_number = ERROR_NO_PERMISSIONS end *********** Any ideas? Sergei Serdyuk Red Leaf Software LLC http://www.redleafsoft.com -- Posted via http://www.ruby-forum.com/.
2006 Apr 11
0
Unit test is failing when I am using SQLite
Hi, There seems to be an issue with SQLite adapter. Any idea what is causing it? document_test.rb contains default scaffold and works fine with MySQL but fails with SQLite. Other unit tests work fine with either DB. Sergei Serdyuk Red Leaf Software LLC http://www.redleafsoft.com document_test.rb: require File.dirname(__FILE__) + ''/../test_helper'' class DocumentTest < Test::Unit::TestCase fixtures :documents # Replace this with your real tests. def test_truth assert true end end error: C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1...
2006 Jun 23
1
Can not rescue ferret exception. What is wrong?
...6 not handled: Too many clauses from (irb):3:in `b'' from (irb):8:in `irb_binding'' from /usr/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'' from /usr/lib/ruby/1.8/irb/workspace.rb:52 -- Sergei Serdyuk Red Leaf Software LLC web: http://redleafsoft.com -- Posted via http://www.ruby-forum.com/.
2006 May 17
1
Ferret causing "out of memory"
I am a bit puzzled. I am having issues with memory leaking away. It seems to be related to searching documents by ''id'' column value. This is what I am doing: cached_annotations = Ferret::Index::Index.new(:path => "#{RAILS_ROOT}/db/ferret/tmp/annotations", :auto_flush => false) 100000.times { |x| doc=cached_annotations[x.to_s] } Every 100000.times eats 100MB
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/.
2006 Apr 06
3
Formating Float ActiveRecord attributes in text inputs
I have AMOUNT field that ActiveRecord maps to Float. Then I use text_field helper to generate text inputs on forms. Helper takes model object and attribute name and does not provide any formatting abilities, thus 2.40 is shown as 2.4 which is fine with floats but does not look good with currency. I have worked around this issue by adding amount_f attribute to the model that returns formatted
2006 Jun 15
3
best updating method
Hi All, I have a Ferret index containing some cached RSS feeds. I have a nightly cron script to cache the feeds, and I''d like to update the index with the latest feeds. I see the Index class has an update method, but I can''t work out how to get the id of the relevant document to pass in. Lets say I have a file called "google_news.xml" I want to go:
2006 Jun 20
7
Any fast way to update non-indexed fields?
...that every update method deletes and reinserts documents. It makes sense if indexed fields are changed but what if it is not the case? It would speed up update a lot indexes did not have to be updated twice for nothing. Any quick way to do it? -- Sergei Serdyuk Red Leaf Software LLC web: http://redleafsoft.com -- Posted via http://www.ruby-forum.com/.