Displaying 20 results from an estimated 34 matches for "actsasferret".
Did you mean:
acts_as_ferret
2007 Apr 30
1
Can''t search fields with space
...acts_as_ferret.
But I can''t get it to return any result whether I use
:city => {:store => :no, :index => :untokenized},
or
:city => {:store => :no} in my User model''s acts_as_ferret option
>>> User.find_by_contents("city:(cal poly)")
=> #<ActsAsFerret::SearchResults:0x4e62608 @total_hits=0, @results=[]>
>> User.find_by_contents("city:(''cal poly'')")
=> #<ActsAsFerret::SearchResults:0x4e5aae8 @total_hits=0, @results=[]>
>> User.find_by_contents("city:(''cal\ poly'')")
=&...
2008 Oct 08
0
undefined method add called for ActsAsFerret::Remote::Server
undefined method `add'' called for
#<ActsAsFerret::Remote::Server:0x7f5be279ea38>
I am currently using ferret (0.11.6) and act_as_ferret (0.4.3)
My project is using rails 2.1.1 and ruby 1.8.6 along with sqlite3 and
Webrick.
I can start the ferret server and when I do ''ps aux | grep ferret'' in
terminal I see the ferret serve...
2009 Jan 05
1
acts_as_ferret ActsAsFerret::IndexNotDefined
Hello!
I use acts_as_ferret at first.
I have several models with acts_as_ferret.
When I do search in the models User,Article,Therm it works fine.
But when I try search in Addition model or in Page model I got following
error message:
ActsAsFerret::IndexNotDefined
addition
in the string: @results = Addition.find_with_ferret(params[:q])
or
ActsAsFerret::IndexNotDefined
page
in the string: @results = Page.find_with_ferret(params[:q])
Where is mistake?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~-----------...
2007 Apr 03
5
Inifinite loop problem with DRb server
...50 && du -h log/ferret*
(in /home/francois/src/xlsuite.org)
4.0K log/ferret.3000.pid
0 log/ferret_index.log
229M log/ferret_server.log
4.0K log/ferret_server.out
There''s nothing really useful in ferret_server.log: only the same
backtrace that I showed above.
module ActsAsFerret
module Remote
class Server
# vendor/plugins/acts_as_ferret/lib/ferret_server.rb:65
def method_missing(name, *args)
clazz = args.shift.constantize
begin
@logger.debug "call index method: #{name} with #{args.inspect}"
clazz.aaf_index.sen...
2009 Feb 10
3
uninitialized constant ActsAsFerret (NameError)
...ith -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in
`load_missing_constant'': uninitialized constant ActsAsFerret (NameError)
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in
`const_missing''
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in
`const_missing''
from /var/www/html/staff/...
2007 May 29
1
is "IN" a special word?
...ferret doesn''t return me any result.
class User < ActiveRecord::Base
acts_as_ferret :fields => {
:user => {:store => :no },
:len => {:store => :yes}
}
end
ruby script/console
>> User.find_by_contents(''Cal'')
=> #<ActsAsFerret::SearchResults:0xb762ab58 @total_hits=1,
@results=[#<User:0xb762b8f0 @ferret_score=0.244397431612015,
@ferret_rank=1, @attributes={"user"=>"Cal Poly", "id"=>"1",
"len"=>nil}>]>
>> u = User.new
=> #<User:0xb76293fc @new_...
2006 Nov 17
4
undefined method `exists?''
Anyone ever run into this error message when creating a new FieldInfos?
Ferret::Index::FieldInfos.new(:store=>:no)
NoMethodError: undefined method `exists?'' for {:store=>:no}:Hash
--
Posted via http://www.ruby-forum.com/.
2007 May 02
6
Rewarding exact matches
Is there a way I can get ferret to give the highest ranking to an
exact term match?
The problem I have right now is that I am searching both title and
body fields, so even if I boost the title field, if the body has more
instances of the query, then it gets pushed up in rank.
I would like for ferret to put exact matches (of the title field) at
the very top of the pile, so if I do a
2008 Jan 21
1
fuzzy search question
...some threshold. However, I would like the exact-match results to
have a higher score (show up as the first results) than the fuzzy-
match results. One really clumsy way of doing this is to do the two
searches and concatenate the results in order into a new set of
results (I''m using ActsAsFerret, so I''d be doing some surgery on
ActsAsFerret::SearchResults that gets pretty fragile with pagination).
Is there an easier way to have a FuzzyQuery return the exact hits
first? It looks like the score is the same regardless of the fuzziness
of a specific term match.
thanks!
2008 Jan 09
5
Parallel indexing doesn''t work?
Hi,
I''m trying to get parallelized ferret indexing working for my AAF
indices, based on the example in the O''Reilly Ferret shortcut.
However, the resulting indices after merging seem to have no actual
documents.
I went and made minimal changes to the example in the Ferret shortcut
pdf, and indeed can''t get that to work either. I''d appreciate any help
2007 Jan 17
5
[ActsAsFerret] Globalize integration
Hi,
I''ve modified the latest acts_as_ferret code (version 0.3.0) to
integrate with the Globalize (http://www.globalize-rails.org/globalize/)
plugin.
Essentially, I''ve added the ability to use a separate index per locale
(It basically adds the language code as a suffix to the index and
switches between indexes when the active locale changes).
Since this introduces an optional
2007 Jan 18
4
[ActsAsFerret] Index Directory Disappears and Not Re-created
Hi,
This is a recurring issue for me - the index directory on my production
server and everything below it occasionally disappears and isn''t
reconstructed. I tried manually creating the entire index path manually
before starting the server, but it still happened while the server is
running.
I don''t know what''s causing the index to disappear and I''m also not
2007 Oct 15
2
how to get all index information on Acts_As_Ferret
how to get all index information on Acts_As_Ferret, like
@index=User.find(:all) on rails. I looked around
ActsAsFerret::ClassMethods,
and didn''t find it..please help me! Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA3...
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all,
I cannot make aaf (rev. 220) use my custom analyzer, despite following the
indications @
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
To pinpoint the problem, I created a model + a simple analyzer with 2 stop
words : "fax" and "gsm".
test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a
stop word.
=> I get a
2007 Apr 08
10
[ActsAsFerret] Fatal failed to allocate memory in DRb
I''m using DRb with edge [AAF] and my server is really fast reaching 3GB+
of memory and soon it will crash with this message:
[FATAL] failed to allocate memory
Now its like this:
10542 bbs 2 59 0 3649M 3647M sleep 1:27 0.10% runner
Anybody has any ideas on this?
--
Posted via http://www.ruby-forum.com/.
2007 Mar 31
5
DRb server & aaf gem
I''m having problems getting the DRb server running with the aaf gem.
I tried it with the plugin installed in my application, and it
worked. I suspect the problem has something to do with the startup
scripts expecting certain files to be in certain relative file paths.
Any insights are appreciated, and maybe if you have time you can
update the wiki document :)
Thanks for a great
2007 Mar 05
3
programatically stopping acts_as_ferret drb server
I need a way to kill the ferret_server drb process programatically, so I
can start/stop it as part of the capistrano deployment process.
This should be as simple as adding some sort of stop method to
ActsAsFerret::Remote::Server. I was just messing around and was able to
do it by modifying method_missing to look for the :stop method and then
calling DRb.thread.exit -- this is not good enough for a general
solution however.
If anyone has an idea of how it should be done, I can do it and submit a
patch.
Th...
2007 Jul 23
1
AAF association not workin
...ND RATTAN MIDDEL 67CM'' to index
Adding field description_supplier with value '''' to index
Adding field label_description with value ''MAND RATTAN MIDDEL'' to index
But when I do a Product.find_by_contents("Haans") I get nothing back.
=> #<ActsAsFerret::SearchResults:0x3514b88 @total_hits=0, @results=[]>
The development log shows:
Query: Haans
total hits: 0, results delivered: 0
Does anybody know why my association does not work. Other searches on
fields in the Product model work fine.
--
Posted via http://www.ruby-forum.com/.
2007 Jun 19
2
offline installation of acts_as_ferret gem
hi folks,
I have been trying to use acts_as_ferret in my rails app.I
have installed the ferret gem.I would like to download acts_as_ferret
gem and then install it offline.But i was unable to find any link for
download..please let me know if any one has did it before...
any help appreciated...thanks in advance....
regards,
venkat
--
Posted via http://www.ruby-forum.com/.
2008 Jan 25
2
strange capistrano problem
When trying to start ferret with capistrano, I keep getting this:
$ cap services:ferret:stop
domain [redken.digitalpulp.com] :
user [john] :
* executing `services:ferret:stop''
* executing "cd /srv/rails/redken/current; script/ferret_server -e
production stop"
servers: ["redken.digitalpulp.com"]
Password:
[redken.digitalpulp.com] executing command
***