Displaying 8 results from an estimated 8 matches for "advancedusage".
2007 Sep 07
5
Custom Analyser .. where to put it ??
Hi,
I m trying to use a custom analyser to add my french stop words... i m
reading the tutorial at :
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
My problem is that i ve no idea where to put my custom Analyser class
like :
class GermanStemmingAnalyzer < Ferret::Analysis::Analyzer
include Ferret::Analysis
def initialize(stop_words = FULL_GERMAN_STOP_WORDS)
@stop_words = stop_words
end
def token_stream(field, str)
StemFilt...
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 result when I should not.
(note : I delete the index directory...
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 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 Apr 10
1
prevent index auto update
Hi,
I have a has_many association between Book and Page.
I have acts_as_ferret running on only the Book model. However, when I
update the a page, it calls the auto update index on the Book model as
well just in case any of the ferret fields were changed.
How can I stop acts_as_ferret from auto updating the index on its own,
especially when nothing changes?
--
Posted via
2006 Sep 09
2
acts_as_ferret 0.3.0
...sible to turn off the automatic indexing for the next or
all following calls to #save. You can even give a block that should be
executed without indexing, and optionally have aaf index your record
after the whole block is finished. Please see
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage for
usage notes.
- no new feature, but didn''t work until now with 0.10.x - the
more_like_this instance method now works as expected again.
have fun!
Jens
--
webit! Gesellschaft f?r neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at we...
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,
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