Displaying 9 results from an estimated 9 matches for "query_delet".
Did you mean:
  query_delete
  
2006 Jan 05
2
ActiveRecord callbacks not happening
Hi,
I have a model class like so:
class Candidate < ActiveRecord::Base
  validates_presence_of :name
  @@index = FerretConfig::INDEX
     
  def self.after_destroy
    puts "Ferret: after_destroy called"
    @@index.query_delete("+id:#{self.id} +ferret_class:#{self.class.name}")
    optimize_index
  end
end
But when I delete a record, the after_destroy is never called. Nothing 
shown on logs from the puts statement. Am I missing something?
Thanks,
Vamsee.
2005 Nov 26
3
Several questions about Ferret.
Hi.
First of all I would like to say "thank you" to David for its really
valuable work. Ferret is a great project and it have great future.
Well now is my questions as beginner in Ferret.
How to remove ALL documents from index. Remove files is not a solution. I am
interesting in something like
index.remove_index or something like this. What is a usual way of doing it??
What is the
2006 May 10
1
acts_as_ferret choking
...ferret-0.9.1/lib/ferret/index/ 
> index.rb:635:in `ensure_reader_open''
> /opt/local/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/ 
> index.rb:650:in `ensure_searcher_open''
> /opt/local/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/ 
> index.rb:390:in `query_delete''
> /opt/local/lib/ruby/1.8/monitor.rb:229:in `synchronize''
> /opt/local/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/ 
> index.rb:389:in `query_delete''
> /opt/local/lib/ruby/gems/1.8/gems/ferret-0.9.1/lib/ferret/index/ 
> index.rb:293:in `<<&...
2006 Sep 20
3
Unit and Functional Tests Bombing with Ferret
Hello,
I am currently using ferret 0.9.5 and acts_as_ferret 0.2.3 on windows XP
All my unit and functions test that used to work before I installed 
ferret are erroring out.  My index is on a model name Post, and it looks 
like all tests that contains methods which does CRUD to the Post model 
bombs out.
Is there anything special I need to do before running unit and 
functional test?
Thanks
2006 Aug 15
5
Ferret Segmentation Faults
Hi,
I am getting a number of segmentation faults using Ferret 0.9.5, Fedora 
Core 5 and  Ruby 1.8.4
I installed it with the recommended gem install ferret
and example segmentation fault creation line would be as follows:
@records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"")
I am also using acts_as_ferret and rails 1.15 but think this is an issue 
with
2005 Dec 21
0
Ferret and Rails transaction
...''list''
          else
            index.close
            render :action => ''new''
          end
        end
      rescue
        if session[:last_addition]
          logger.error "We verwijderen ad met id:
#{session[:last_addition]}"
          index.query_delete("+id:#{session[:last_addition]} +table:ads")
          index.flush
          session[:last_addition] = nil
        end
        flash[:notice] = ''An error occurred.''
        redirect_to :action => ''new''
      end
    end
  end
How does it work, or...
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 Aug 25
6
End-of-File Error occured at <except.c>:103 in xpop_context
Hi, I get this when searching or adding a new record. I am using today''s 
version of trunk and gem ferret 0.10.0
any ideas? thanks!
 EOFError in DvbesController#new
End-of-File Error occured at <except.c>:103 in xpop_context
Error occured in store.c:197 - is_refill
	current pos = 0, file length = 182
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full