Displaying 20 results from an estimated 2000 matches similar to: "how to get all index information on Acts_As_Ferret"
2007 Apr 30
1
Can''t search fields with space
Hi,
I have a user model that has a city field which is searchable using
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)")
=>
2007 Apr 03
5
Inifinite loop problem with DRb server
Hi all,
We''re attempting to use Ferret with the DRb server at the moment, and
it doesn''t work, at all...
= Executive Summary
The DRb server process keeps on calling the remote index to the DRb
server process... Which means DRb is calling itself, and itself, and
itself, until Ruby kills the Thread with a SystemStackLevel error.
= The excruciating details...
# Mongrel is
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
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:
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/.
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
2009 Mar 18
0
Acts_as_ferret: Slow ferret_update with associated models
Hi,
I am using some custom fields for ferret indexing to include fields from
associated models. When those child models are updated, I do
ferret_update
on the parent model. Unfortunately, that takes very long, depending on
the
number of associated child models. That is because every child model is
called to re-index the parent, instead of just the changed one.
What can I do to speed up
2007 Jul 23
1
AAF association not workin
Hi,
I have configured my model as follows:
class Product < ActiveRecord::Base
acts_as_ferret :fields =>
[:description,:label_description,:label_free,:product_id_supplier,:description_supplier,:supplier_description]
belongs_to :supplier
def supplier_description
return "#{self.supplier.description}"
end
In the development log I can see the supplier_description
2009 Feb 10
3
uninitialized constant ActsAsFerret (NameError)
Hi all,
I have another problem that I fight with for some time and I could not
understand where is the problem. Probably the problem is that I am quite
"green" in RR :)
I am trying to make the Demo Application that comes with Ferret to work
but I guess something with my environment is not OK.
I will do apreciate any help.
[root at moonlight FerretDemo]# ./script/server
=> Booting
2008 Jan 21
1
fuzzy search question
Hi,
I''ve got a question about FuzzyQueries. Say I''m doing a search for
people by name, and I want to allow fuzzy results if there aren''t
enough hits with a regular query. This is easy enough; just redo the
search with the fuzzy query if original_results.total_hits is less
than some threshold. However, I would like the exact-match results to
have a higher score
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 May 29
1
is "IN" a special word?
Hi, I am trying to do a search for a field that contains the word "in"
or "IN", but 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'')
=>
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 server to be running.
I have a model and
2007 Nov 16
18
Multithreading / multiprocessing woes
I''ve been running some multithreaded tests on Ferret. Using a single
Ferret::Index::Index inside a DRb server, it definitely behaves for me
as if all readers are locked out of the index when writing is going on
in that index, not just optimization -- at least when segment merging
happens, which is when the writes take the longest and you can
therefore least afford to lock out all reads.
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
***
2010 Sep 16
6
acts_as_solr plugin fate?
Just wanted to see if I was using the latest acts_as_solr plugin, but
the URL <http://acts_as_solr.railsfreaks.com/> takes me to a GoDaddy
domain parking page.
Anyone know what''s happened to railsfreaks, and more particularly
this plugin?
--
Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
twitter: @hassan
--
You received this
2011 Sep 09
2
acst_as_solr error
hi,
i am using https://github.com/mattmatt/acts_as_solr
it shows the following error
"undefined method ''each'' for "
for this
results = Employee.find_by_solr(@id)
results.each do |emp|
puts emp.id
end
where plugin does not contains "each" method in acts_as_solr/libs/
search_results.rb
so for me each is not working with ActsAsSolr::SearchResults
2007 Jun 07
3
:store => :yes doesn''t work in some cases
I''m not really sure if this is a bug, but it makes my search results
look a bit strange. I have an acts_as_ferret declaration that looks
like:
acts_as_ferret :store_class_name => true, :remote => true, :fields =>
{
:ferret_name => { :store => :yes, :boost => 2 },
:ferret_content => { :store => :yes } }
I store both fields so that I
2011 Sep 08
8
acts_as_solr problem ActsAsSolr::SearchResults:
hi,
i am using acts_as_solr plugin when i tried with search
by
def search
puts "#####################"
# ids = params[:name]
@id = params[:query]
@emp = Employee.find_by_solr(@id)
puts "------------------------------#{@emp}"
respond_to do |format|
format.html{render :action => ''search''}
format.xml
end
2006 Feb 27
4
Belgian Ruby on Rails Site
Hello,
I recently started http://www.onrails.be
Onrails.be is a Belgian Ruby on Rails site (in Dutch).
At the moment however, the site is powered by Textpattern (PHP CMS).
I already knew that, and I''m just getting to know Rails myself.
If some Dutch people visit this forum:
//message is written in Dutch from this point
-> Wat vinden jullie ervan? Is de content goed? Zijn de