Displaying 20 results from an estimated 5000 matches similar to: "Act as Ferret supports Conditional search?"
2007 Jul 31
5
Group by clause
Hi
Does acts_as_ferret support a :group clause?
For e.g any rails options like :select or :group etc? or is it that it
supports only few of such options?Like it supports :include
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20070731/a74fb666/attachment.html
2007 Jul 30
4
indexing only the changed values
Hi all,
i have model A which has a field indexed from model B. model A belongs
to model B.
So whenever i insert a row in model ''A'', a query is fired to the field from
model ''B'' even though the data was not changed for the field in model B.
Can i somehow avoid these extra queries,or rather query the data and index
it,only if the data has been changed>?
e.g
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
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 Jul 25
17
DRb not starting
Hi,
I have my Model as follows:
class Mutation < ActiveRecord::Base
acts_as_ferret ({:fields => {:description=>{},
:product_id=>{:index => :untokenized},
:product_description=>{},
:product_label_description=>{},
:product_label_free=>{},
:product_product_id_supplier=>{},
:product_description_supplier=>{},
:supplier_description=>{},
:pub_date_sort
2008 Jan 06
3
Did you mean ...? with act_as_ferret
Hello,
does anybody know how to implement a "Did you mean ...?" like Google
with act_as_ferret?
I think this is a possible way:
1. Generate a keyword-list (this is my difficulty. I don''t know how to
build such a list from the index) with no stop-words from the first
index.
e. g. (car, ship, plant, house)
2. Build a second index from this word-list where we store the word in
2007 Aug 24
7
can''t create new ticket
Hi there,
I can''t seem to find a way to create a new ticket.
I''d like to create tickets for those two reproduced bugs:
http://rubyforge.org/pipermail/ferret-talk/2007-June/003588.html
http://rubyforge.org/pipermail/ferret-talk/2007-June/003600.html
Can anybody please do it for me or point me in the right direction ?
TIA
--
2007 Aug 19
4
SVN installation problem in ferret
Hello,
I am not able to run this command given in the tutorial
http://projects.jkraemer.net/acts_as_ferret/
*Inside your Rails project*
Please use
script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
gem is installed.
i have added the desired line in environment.rb as well
but while running this particular command of svn://.. nothing actually
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 Sep 17
2
Drb - shared app with multiple private databases - howto?
Hello,
I''ve been trying to get my head around ferret and the one thing that
stumps me is how I might use Drb on a dedicated server with multiple
clients using the SAME application but each with their own private
database and other file assets (in an uploads directory within the
app)
Thank you for any suggestions, pointer etc.
Also I''d be very interested in hearing from those
2007 Jul 29
3
Memory leak in PerFieldAnalyzer
Hello everyone,
we''ve recently discovered a memory leak in the
PerFieldAnalyzer. If you use the PerFieldAnalyzer
(which you acutally should), you should switch
to a pure ruby version of that analyzer. The C
version of the Analyzer is consuming memory
on every analyzing request.
You can find an example script to verify the
leak[1]. Furthermore we''ve added a
workaround, building
2008 Jun 04
2
Is Ferret''s SVN repository down?
Is Ferret''s SVN repository down? I''m trying to get the source from
svn://davebalmain.com/ferret, but I keep getting "Connection Refused"
errors. Did the URL change, or is Ferret''s repository really down?
--
Bira
http://compexplicita.wordpress.com
http://compexplicita.tumblr.com
2007 Dec 05
2
Term frequency doesn''t decrement after document is deleted.
Hey all,
The frequency count returned by my ferret reader doesn''t decrement
after I remove a documents with those terms. Using the example from
http://ferret.davebalmain.com/api/classes/Ferret/Index/TermEnum.html
the frequency increments after a document is added but stays the same
after a document is deleted.
index.reader.terms(:tags).each do |term, freq|
"#{term} appears
2007 Aug 23
4
index all but search in some fields
Hi,
i like to index most of my model fields, but limit the search only to a
(changing) subset of this fields.
--
Posted via http://www.ruby-forum.com/.
2007 Aug 31
4
ferret acts_as_ferret and performance
hello,
I am actually indexing thousands of 1ko text documents using ferret and
acts_as_ferret, and i face performance problems.
I takes me hours to index 20 000 1ko text documents.
Methology used :
I create and object, fulfill it with the text, and save it. So it is
automaticly indexed.
Is there a way to make it faster ? ( remove the auto optimize option
somewhere ?)
Thank you if you have any
2007 Oct 03
3
Pagination problem with acts_as_ferret
Hi,
am using this wonderful plugin acts_as_ferret and according to the
tutorial at http://railsenvy.com/2007/2/19/acts-as- ? rial#basic
I worked it out except the pagination feature.
If I have 12 records and I give limit to 10, its correctly displaying 10
records in the first page and is giving the link to the second page too.
But when I go to the next page I find the same 10 records instead of
2007 Jul 13
8
More sorting problems with untokenized index
I''m having problems sorting on untokenized fields. I have one field that
sorts fine, but there are others that seem to sort on a different field.
Here''s the index description:
acts_as_ferret
:remote=>true,:fields=>{:name=>{:boost=>2},:name_for_sort=>{:index =>
:untokenized},
:city=>{:boost=>2}, :city_for_sort=>{:index=>:untokenized},
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
2009 Apr 09
4
Weird analyzer issue with the word ''fly''
Hi all
I''m using a_a_f in rails with a StemmingAnalyzer, in the index and in my
search. I got the idea from this topic:
http://www.ruby-forum.com/topic/80178
I''m having a problem with some search terms - i narrowed one of them
down to the inclusion of the word ''fly''. Can anyone give me any clues
at to what might be happening, or even how i can investigate?
2007 Oct 10
2
Multiple index instances and ferret/acts_as_ferret
We''re running Ferret and acts_as_ferret in our production environment. We
have multiple mongrels talking to a single index on a separate (virtual)
server over DRb. This is working ok for now, as our index updates are fairly
infrequent. I''m concerned with the lack of rendundancy/scalability in this
layout.
Our index won''t get too big - maybe 100k indexed objects, each no