Displaying 20 results from an estimated 2000 matches similar to: "prevent index auto update"
2006 Aug 25
7
disabling automatic indexing in acts_as_ferret
I''d like to be able to enable/disable the automatic indexing of
documents acts_as_ferret does. Something like MyModel.disable_indexing
MyModel.enable_indexing would be perfect. I need this because I do some
indexing that requires visiting the parents of the model objects and my
import method imports the children first, so the information isn''t there
yet. I''d like to
2006 Dec 16
10
Getting "ArgumentError ( isn''t a valid directory argument.
I''m hoping someone has encountered this before. I''m using AAF trunk and
trying to multi_search across 2 models. It works fine on my windows
(Webricks) dev env but now that i''ve deployed to linux, (Apache,
FastCGI) I''m getting the following error:
ArgumentError ( isn''t a valid directory argument. You should use either
a String or a Directory):
2007 Jul 23
1
Ferret indexing problem through rake tasks
I''m having a weird problem. Recently, on all my environments, one of my
two indexed models is not returning any results to acts_as_ferret.
However, the folder is being created for it and Im not receiving any
errors.
On my two models, I call the following:
Book.rebuild_index
User.rebuild_index
When I call those commands through either my live app "ruby
script/server" or
2007 May 16
7
return ONLY total_hits without querying from real database
Hey guys,
I know I can run search(q).total_hits, but if I try to put :limit=>0 it
gives me an error. I don''t want it actually query any of the results, I
just want it to tell me how many total_hits I would have if I wanted to
search it.
How can I do this?
--
Posted via http://www.ruby-forum.com/.
2007 Mar 06
3
aaf excluding certain db records from indexing
hi!
short question about aaf:
is there a builtin functionality in acts_as_ferret to exclude records
from being indexed when for example a column "is_deleted" /
"is_disabled" / "dont_index" has a certain value?
regards
neongrau
--
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
2007 Jun 07
5
Advise on slowness in bootstrapping?
I am looking at trying to use ferret/aaf to supplement my querying against a
medium and large table with lots of columns. Some facts first:
Ferret 0.11.4
AAF 0.4.0
Ruby 1.8.6
Rails 1.2.3
Medium table:
105,464 rows
168 columns (mostly varchar(20))
11 actual columns indexed in aaf plus
40 virtual columns indexed in aaf (virtual is concat of two physical columns.
e.g. cast_first_name_1 +
2007 Apr 24
2
remote database ActiveRecord model
Does anyone know how to make a model connect to a remote database and
only for that specific model?
That way I can do the typical CRUD functions on a remote server?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2007 Jan 06
2
S3 throwing invalid argument using AWS S3 API
Hello,
Im using the following amazon web service API for S3 :
http://amazon.rubyforge.org/
The problem is that after I establish a connection using
establish_connection!, and try using the "store" command, I keep getting
the following error. However, if I reboot my webrick server, it works
fine for about one hour and then starts throwing this error:
Errno::EINVAL in
2007 Oct 04
2
Offline indexing issues
If I disable ferret in my environment file and then run a cron job
every hour to index the records that have been added/changed, do I
enable Ferret just in the script that does the hourly indexing? Or do
I somehow need to tell the process that runs the Ferret DRB server
that it should start writing to the index again? Thanks in advance.
Erik
2007 Nov 11
6
Reducing dependency on remote ferret process
Hi.
We use FerretDrb for search. If the ferret process is down, our entire
application comes down the moment we try to save a model which is indexed.
Is there a way to decouple this relationship such that we can somehow
resume normal operations despite ferret being down and not index the model?
Thanks.
Morten
2007 Feb 10
1
calling destory on HABTM clear
I know this is probably stupidly simple, but I can''t seem to figure it
out.
I have a many-to-many association using HABTM. Im trying to clear all
the stuff in the join table and call destroy on all the joined items.
For example if I have a many to many for albums and photos,
def method
album=Album.find(4)
album.photos.clear
# NOW HOW DO I DESTROY ALL THOSE PHOTOS?
end
The things I
2007 Sep 12
3
Can''t disable ferret when running in Mongrel
In my environment.rb I say the following:
MyModel.disable_ferret
puts MyModel.ferret_enabled?
The console works as expected:
script/console
false
>> MyModel.ferret_enabled?
=> false
I can then edit an instance, ferret remains disabled and the changes
are not immediately indexed.
However, when I start mongrel Ferret is initially disabled, but then
somehow becomes enabled again
2007 Apr 23
8
rake not working when called through cron
This is currently the contents of "app-backup" in my cron.daily.
--
#!/bin/sh
# Cron Job for Mixbook Code Backup
#
# Updated February 1, 2007
cd /var/rails/beta
rake s3:backup:scm --trace >> /var/rails/beta/log/backup.log
cd /var/rails/beta/log
echo "Backup Successful on" >> backup.log
date >> backup.log
echo "--" >> backup.log
--
When I run
2007 Nov 20
5
Compound search / grouping
Hi,
Following problem:
We have a tree structure with children and a root element (recursivly)
stored in one table (imagine a threaded forum).
Each of the children has a title which should be indexed by ferret.
Now we want to make a search that returns only the root and searches all
items.
So if one node has "expensive" and nother node has "car" I want to enter
2008 Jan 02
4
utility of default_field
The documentation* states that when using a single index for multiple
models, the default_field list should be set to the same thing for
all models.
However, in my application, all my models have very different fields
and this is not possible. I still want the results returned sorted by
term frequency across all indexed content in each model.
What is the purpose of default_field? Under
2007 Mar 13
6
Acts_as_ferret and auto-flush
Hi,
I''m using acts_as_ferret in with a mongrel and I'' m getting locking
errors that after a while result in a corrupt database.
I know about the problem with different processes writing to the
index but I haven''t been able to get the DRB server working properly
yet. I read on this list that another solution is to set :auto_flush
to true but I''m not
2006 Oct 09
2
hello, acts_as_ferret questions, any help greatly appreciate
hi, ive been reading up on ferret, acts_as_ferret, and other search
plugins for rails.
after reading about ferret, i found out about the acts_as_ferrt plugin.
my first question about acts_as_ferret:
1. from reading about ferret, do i still need to manually save the IDX
and add a IDX column field to my model table for acts_as_ferret to work?
they say that acts_as_ferret handles everything,
2006 Oct 17
9
Error : End-of-File Error occured at <except.c>
Everything was working fine till last night. This morning I have many
errors.
I am using acts_as_ferret. Last updated around a month ago on linux.
There are two different type of exceptions. I have over 12 exception
emails but these are the two distince types.
First exception:
A EOFError occurred in home#event_info:
End-of-File Error occured at <except.c>:79 in xraise
Error occured in
2007 Sep 28
6
Prevent indexing depending on variable
Hi guys, I''m using attachment_fu on my site to allow users to upload
pictrues. Pictures can be set to only allow friends to view them.
The problem I''m having is ferret is indexing the images along with their
thumbnails which means I end up with a lot of broken images in the
search. Also it''s indexing images whose privacy is set to 1 (friends
only).
How could I go about