Displaying 20 results from an estimated 2000 matches similar to: "Advise on slowness in bootstrapping?"
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 Nov 28
4
Update/Create record only if field is true
I have a sellable flag in my database. I''m trying to have ferret only
add/update records where sellable == true. What is the best way to do
this? I''ve tried editing instance_methods.rb in the AAF, but I still
can''t get it to work.
Thanks for the help
--
Posted via http://www.ruby-forum.com/.
2007 Mar 19
7
Many index files
I''m using acts_as_ferret and have indexed a model with acts_as_ferret
:fields => [:name, :ascii_name, :alt_names], :single_index => true.
Now in the index directory more than 95.000 files are generated! The
number of tuples I''m indexing is approx. 86.000.
I can''t remember this from earlier ferret/acts_as_ferret versions where
I''ve indexed millions of
2007 Mar 09
5
higlighting problem
Hi,
I''ve been having a problem getting highlighting to work with aaf.
I have a class defined as follows such:
class Link < ActiveRecord::Base
acts_as_ferret :fields => { :description => { :store => :yes } }
end
I get back the correct results when I do Link.find_by_contents, however,
I''d like to highlight them.
If I do something like iterate through the list of
2006 Sep 18
16
Dynamic fields and AAF
Hi,
I have a model which has properties, these are your standard name/value
pairs, but also have attributes that affect how I want to store them in
ferret. I was using 0.9.5 with 0.2 of aaf, which seemed fine, I just
copied and pasted (yes, I know, ick) the to_doc method and added code to
iterate though the properties that that model had, and add relavent
fields to the document.
It seems
2007 Apr 07
19
Constant 0.11.4 Errors
Folks,
Since upgrading to ferret 0.11.4 on Mac OS X Tiger, I''ve been running
into constant crashes when running my Rails tests. Here''s an example of
the output.
-- snip --
1) Error:
test_published_blog_can_be_ferreted(BlogTest):
Ferret::FileNotFoundError: File Not Found Error occured at
<except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
2006 Sep 18
3
Automatic reindexing of associated columns acts_as_taggable
Hi,
So i''m trying to use acts_as_taggable with the acts_as_ferret plugin,
where I have Post.rb model, which has a method tag_list made available
through acts_as_taggable, as returns a string of associated tag words
from the tags table (tag.rb). I''ve set up my Post.rb model in the
following way.
class Post < ActiveRecord::Base
acts_as_taggable
acts_as_ferret
2006 Sep 03
9
using highlight from aaf
Hi,
I''m trying to use highlight ferret method with trunk aaf and 0.10.1
ferret.
In my search display I use:
Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id,
:content)
* searcher is a protected method; how can I access to the searcher from
aaf ?
* is the doc id in aaf the same as my model id ?
* is the first param, query, the string query or the query object ?
2007 Aug 08
3
issues with index for table with over 18 million records
I have a MySQL table with over 18 million records in it. We are
indexing about 10 fields in this table with ferret.
I am having problems with the initial building of the index. I created
a rake task to run the "Model.rebuild_index" command in the background.
That process ran fine for about 2.5 days before it just suddenly
stopped. The log/ferret_index.log file says it got to about
2007 Apr 13
5
undefined method `ferret_index'' for xxx:Class
Hi I am trying to use ferret; the regular search works; but when I use
the find_storage_by_contents to highlight the results, I am getting the
above error. Please help
thanks
--
Posted via http://www.ruby-forum.com/.
2007 Jul 03
6
How index works!
Hi, i''ve a project in wich i have 2 different rails apps accessing the
same DB.
The backoffice, as usual, changes data.
The frontoffice has a search capabilities with acts_as_ferret
(paginated) for search.
Maybe this is a newbie question but, when i delete index and restart
front app all the articles are indexed, but the new one''s (via
backoffice) are not searchable.
Does
2006 Oct 12
3
Ferret::StateError while using acts_as_ferret
I''m fairly new to ferret / aaf and finding it much easier to use than
HyperEstraier (which I migrated from). However, I am getting a few
errors and I need to figure out if they''re problems with my usage of
ferret or a bug I should report. I''m currently running Ferret 0.10.11
with acts_as_ferret (latest via svn external) and 3 times today I''ve
seen the
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
Thanks Stuart. I thought I had read somewhere that rebuild_index
built the index in a different location and then swapped it, but
after looking at the code (in local_index.rb) this doesn''t appear to
be the case. That might explain why the ferret server crashes
sometimes when a search takes place during a reindex.
I wouldn''t be doing exactly the same thing as this but
2007 Apr 06
3
Double work at Model.rebuild_index
I''m noting that every time I run Model.rebuild_index its running twice
the rebuild_index. Also, on ferret_index.log there is only one small
difference from the first and second time, see:
First time it shows:
rebuild index: []
reindexing model User
After it finishes, it automatically starts the second time and shows;
rebuild index: [["User"]]
reindexing model User
The full
2007 Sep 24
2
ferret fuzzy matches
Hi guys,
Is there some way of getting ferret matches string, when i do a fuzzy
search?
The scenario is this:
1. The user search for ''show''
2. Nothing was found
3. So I do a fuzzy search, passing ''show~''
4. It gives me somes results, most of all was matched with ''showcase''
5. So I want to tell the user that: Nothing was found with
2007 Jun 16
2
more specific queries via IndexReader
We would like to show a list of "most recently added terms", meaning,
the results of this query:
Resource.aaf_index.ferret_index.reader.terms(:summary)
BUT, only returning terms from a certain set of documents (in our
case, we are going to filter by creation data).
Is this possible?
Thanks,
John
2007 Feb 06
2
Which method to use to get content from index with a_a_f?
Hi everybody,
After staring at the a_a_f API for quite sometime now, I decided it''s
time to ask...
Which method should I use to get content from the index without using
highlight? Consider the following controller action:
def preview
if params[:search].blank? # normal case
@text = @myfile. # which method do I use here to get the :text from
the index???
else # if we come from
2007 Mar 12
5
index.rb:384 [BUG]
Hi folks,
I''ve working and playing with acts_as_ferret and follow this fantastic
tutorial:
http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial
When I try to implement the field storage tip, it crash. So, I try to
make it via script/console:
1. I have a simple model called Articles:
class Article < ActiveRecord::Base
acts_as_ferret :fields =>
2007 Apr 01
9
Important issue with [AAF] and :select
This is important and may be affecting you if you use :select to
minimize the columns you need on big queries.
If you use :select to define which columns you need and you have not
included all the columns you defined in the :acts_as_ferret field
definitions you''ll clear the content of those fields on the ferret
index. And that may corrupt your index.
So, if you have in your model:
2007 May 29
1
When does ferret / AAF decide to reindex?
I am experience situations where accessing the index results in a
complete re-indexing of the model. I have not been able to detect a
pattern.
Under what circumstances does Ferret (or AAF) decide that it needs to
rebuild the index? I''ll be happy to look at the code relevant to this
if someone could direct me to it.
Thanks,
John