Displaying 20 results from an estimated 7000 matches similar to: "Some newbie questions"
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.
2006 Jan 02
3
Multiple indexes?
Hi,
I''m indexing records from different database tables and they have
identical column names in many cases. Does this mean I have to create
different indexes for each table?
TIA,
Vamsee.
2006 Jan 10
1
search_each returns partial results?
Hi,
I''m having some trouble with ferret search_each. I''m posting rails''
script/console output, so I guess you can decrypt it:
>> res = []
=> []
>> index.search_each(''name: a*'') do |doc, score|
?> res << doc
>> end
=> 50
>> res.size
=> 10
>>
I''m guessing the ''=>50''
2006 Jan 05
6
Problems with Ferret in RForum
Hi,
I have been using Ferret on ruby-forum.com for a few days. While the
searching works with reasonable performance, there are a lot of problems
related to indexing. Sometimes the process hangs with 100% CPU usage,
sometimes it leaves Lockfiles in the directory (causing other processes
to fail while one ist still working), sometimes it even crashes with a
segfault.
I''m going to
2006 Jul 07
4
Help installing Ferret
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
I followed everything here but at the last I get when loading page
get_results
Can only handle a String or a Query.
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/models/result.rb:27:in `search_each''
#{RAILS_ROOT}/app/models/result.rb:27:in `search_index''
2006 Feb 01
6
Little Ferret Problem
I''ve implemented Ferret, using the instructions here:
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
I get no errors in the application at all... however, I always get 0
results.
I built an index off of some data, it exists in the index/ directory, the
form submits find... etc...
Just 0 results... all the time :)
I confirmed the data from my models is being put
2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all,
I was playing with the sample project found on the Wiki at
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
, and everything was working fine, ... till I moved to EdgeRails :
undefined method `weight'' for #<Hash:0x22c7150>
(full error thread below)
Any idea?
Alain
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
2005 Dec 18
1
assert_template fails?
Hi All,
I have a seemingly simple problem - but can''t figure out the problem. I
have a simple functional test like so:
def test_should_show_search_dropdown
get :index
assert_response :success
assert_template :search
end
Inspite of having search.rhtml in /app/views/layout, it fails with an error:
1) Error:
test_should_show_search_dropdown(SearchControllerTest):
2006 Aug 08
1
acts_as_ferret to search partial phrases and fuzzy
Hi All,
I was wondering if anyone had experience of extending AAF plugin for
Rails to implement a broader query ?
The documentation and the demo provided on the
http://projects.jkraemer.net/acts_as_ferret/ wiki seems to only match
full text queries, or partial when using a * wildcard.
Ideally, I am trying to acheive something similar to the following
(pseudo code):
def search
@query
2006 Apr 05
3
Missing Ferret 0.9.0 Field methods
The following instance methods seem to be missing from the
Ferret::Document::Field class in Ferret 0.9.0 using compiled C
extensions: #string_value, #reader_value and #binary_value. They are in
the pure ruby implementation).
I got round it by mixing in hacked versions of the pure Ruby methods
(@data replaced by self.data).
Many thanks for Ferret it''s shaping up to being a killer app
2006 Jan 02
11
aligning Ferret''s IndexSearcher.search API with Lucene''s
Recently I''ve been revisiting some of my search code. With a greater
understanding of how Java Lucene implements its search methods, I
realized that one level of abstraction is not present in the Ferret
classes/methods. Here are the relevant method signatures:
Ferret''s search methods:
in Ferret::Index::Index:
search(query, options = {}) -> returns a TopDocs
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 Feb 06
4
Searching large tables with Rails?
I have a large table (> 20,000 records) with text columns for which I need to build a search function. Is there a "Rails" way to index all the entries and NOT search using LIKE?
"LIKE" searches can get very slow and I would rather build an index of the columns to speed up things.
Just want to know if there is something like "acts_as_indexable"
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups,
thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
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
2005 Nov 19
14
FULLTEXT search in MySQL on rails
I tried adding a FULLTEXT search index to a table of mine in MySQL,
only to discover that the InnoDB table format doesn''t seem to support
this feature. Switching to the MyISAM table type seemed to work, but
I seem to have some recollection that ActiveRecord transactions aren''t
fully atomic on MyISAM tables. Is this true or am I just remembering
wrong? If so, does anyone have
2006 Sep 21
1
Ferret is now accepting donations
Hey folks,
Since this is the Ferret mailing list I should preface this by that
the donation of time and help by people like Jens Kraemer, Jan Prill
and all the other people who have contributed to Ferret is just as
valuable to me as any financial assistance. Thanks.
Ferret has been a labour of love but it has taken up a lot more of my
life than I ever expected. At in excess of 50,000 lines of
2005 Dec 31
26
Free "Agile Web Development with Rails" Text
Hi All,
I''m a RoR n00b that has been lurking for a week or so. About two weeks
ago I bought the text version of Agile Web Development with Rails.
Today, I bought the .pdf version because I run a Sony Notebook and find
a .pdf more user friendly. Therefore I have the text to give away for
free. If anyone in the continental US would like the copy please let me
know and I''ll mail it