Displaying 20 results from an estimated 4000 matches similar to: "Can not rescue ferret exception. What is wrong?"
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 Jun 15
10
Finding out all terms from search results. How?
Hi everybody,
I need to find out all terms (field 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
2006 Jun 20
7
Any fast way to update non-indexed fields?
Hi,
>From looking at Ruby sources it seems 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
2007 Apr 13
4
[Ferret] QueryParser memory leak bug (Joyent/OpenSolaris)
QueryParser fails badly allocating enormous amount of memory when
processing query strings with special/accented characters. See:
irb(main):002:0> require ''rubygems''
irb(main):003:0> require ''ferret''
irb(main):004:0> include Ferret
irb(main):005:0> index = Index::Index.new
irb(main):008:0> index << "something"
# Now the error
2006 Aug 02
2
too many clauses exception
hey..
i get this error quite regularly, what exactly dies it mean?
: Error occured at <q_prefix.c>:54
Error: exception 6 not handled: Too many clauses
am i adding to many clauses in the query statement?
Ben
2007 Apr 13
5
[Ferret] Serious memory leak on Joyent / TextDrive / Solaris
There is serious memory leak bug in ferret. I''m having this error on
TextDrive Container (aka. Joyent Accelerators) OpenSolaris with Ferret
0.11.4
It happens while searching for some terms with accented or special
characters.
This makes ferret to allocate lots of memory (usually reaching 3+ GB)
and failing if another query like this is executed.
Any ideas on that, could this be locale
2006 Apr 07
1
Upload corrupts images. Any ideas why?
Hi,
I have written upload action and it seems to be working in general but
image files consistently get corrupted. They differ in both content and
size.
I have uploaded a small text file without any problems.
Everything is running on my laptop, WEBrick is the server.
Code:
***********
begin
@filename = @params[''NewFile''].original_filename
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 <
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 Jul 06
5
acts_as_ferret Locale issue
I''ve just installed acts_as_ferret, and am trying to build my index, but
I''m getting the following error:
>> r = Topic.find_by_contents(''testing'')
StandardError: : Error occured at <analysis.c>:704
Error: exception 2 not handled: Error decoding input string. Check that
you have the locale set correctly
from
2006 Nov 02
2
Rescue don't work on web applications
Hi,
I''ve a Rails application who starts a Ruby script .
The script is made via Web -> database.
Than you can select a script to start via a database list.
Problem:
In case of errors , I like to start a rescue showing the users the
problems.
render(:text => "<pre>" + CGI::escapeHTML(`
begin
/home/luc/radrails/cpe/public/startq_test.rb
2006 Jul 31
2
Indexing a lot of records
When trying to index a rather large database of records (50,000),
acts_as_ferret takes a long time, then invariably times out and all the
index information isn''t created.
Does anyone know how to rectify this?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 24
8
installing ferret
I am trying to test drive ferret on a ubuntu dapper installation.
I have a ferret-test.rb file like:
----begin---------
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/opt/search-index'')
----end-----------
When i issue: ruby ferret-test.rb, I get:
ferret-test.rb:1:in `require'': no such file to load -- ferret
(LoadError)
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
2020 Aug 16
3
Supporting libunwind on Windows 10 (32bit; 64bit) for MSVC and Clang
Martin,
good to hear from you.
Thanks for the effort - I will test on 32bit and 64bit Windows 10.
I will report ASAP.
Ivan
On Sun, Aug 16, 2020 at 8:42 PM Martin Storsjö <martin at martin.st> wrote:
> On Sat, 15 Aug 2020, Ivan Serdyuk wrote:
>
> >
> >
> > On Sat, Aug 15, 2020 at 8:39 PM Martin Storsjö <martin at martin.st> wrote:
> > Hi,
> >
2006 Jun 08
2
ActionMailer timeout problems
Hi,
I am having problems getting ActionMailer to send any mail.
I am developing on windows XP with lighttpd and scgi.
my settings are as follows(my.domain.net is replaced with a correct mail
server):
config.action_mailer.server_settings = {
:address => "my.domain.net",
:port => 25,
:domain => "domain.net"
}
config.action_mailer.raise_delivery_errors = true
2020 Aug 15
5
Supporting libunwind on Windows 10 (32bit; 64bit) for MSVC and Clang
On Sat, Aug 15, 2020 at 8:39 PM Martin Storsjö <martin at martin.st> wrote:
> Hi,
>
>
> On Sat, 15 Aug 2020, Ivan Serdyuk wrote:
>
> > Just as Shoaib said, libunwind only is useful in environments
> > that use
> > the Itanium C++ ABI - there's really no use for it in an MSVC
> > context
> > (either using MSVC or
2006 Nov 07
1
Memory consumption too high
Hi,
I''m having trouble with ferret and AAF blowing up with a NoMemoryError.
Sometimes when I add documents inside my rails app. Ferret starts
consuming huge amounts of memory. I''m on a machine with 2GB of memory
and it still runs out of memory. Sometimes I''m able to run
MyObject.rebuild_index and the memory doesn''t move up at all. However,
sometimes it
2006 Aug 24
2
acts_as_ferret for Ferret 0.10
Hi all,
the current acts_as_ferret trunk is now ported to Ferret 0.10.
Get it while it''s hot at
svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin
Nearly everything works, besides this:
- all queries are ORed (no way to tell the QueryParser to build AND
queries by default)
- more_like_this is broken
I''m working with Dave to fix these things soon. The last Ferret 0.9.x
2012 Jan 15
1
NoMethodError: undefined method `expect'
Ideas?
ruby-1.9.2-p290 :002 > require ''rspec''
=> true
ruby-1.9.2-p290 :003 > RSpec::Version::STRING
=> "2.8.0"
ruby-1.9.2-p290 :004 > describe ''division by zero'' do
ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error
ruby-1.9.2-p290 :006?> end
NoMethodError: undefined method `expect'' for