Jens, thanks again for the words.
i've got one more question regarding searching by associations with
aaf. Is it possible?
for instance, i have an account model and a forum, with topics and
messages.
I'd love to search by current_account.topics for instance.
Using this shared index, can i do this (mind you it doesn't work so
i'm wondering if you have any hints?!?!
ActsAsFerret::define_index('forumindex',
:models => {
current_account.topics => {:fields => [:title]},
current_account.messages => {:fields => [:title, :content]}
},
:ferret => {
:default_fields => [:title, :title, :content]
}
)
Thoughts?
Addendum: Although current_account is a controller method in
application.rb, maybe that's why it won't work. i just don't k now
enough to put it in the model however.
thanks
Phil.
On 11-Feb-09, at 4:48 AM, Jens Kraemer wrote:
Hi,
On 11.02.2009, at 05:11, Philip Ingram wrote:
no comma, worked like a charm.
great :-)
All the hip kids are using sphinx and there was a rumour out there
that ferret hasn't been worked on for like 2 years. is that true?
if you want to email me directly, i'm fine with that too, but would
love to hear about the direction of the project,, and if it's not
long term, i might as well go with sphinx, rake tasks and delta
indexes and all... i'm launching a new site where search is going
to be prevalent in it, hence these questions.
As you can see on github, the last commit to Ferret's code base was
on Jan 02 this year: http://github.com/dbalmain/ferret/tree/master
I'm personally using aaf in several projects, among them a knowledge
management system where search also is a key part of the
application, so I'll for sure continue maintenance and development
of the plugin (as time permits, which in the last few months for
sure has been a problem). Patches are always welcome of course. I
also plan to do a major rewrite of the whole plugin as soon as
possible.
Regarding sphinx - while it might be an ok solution for really
simple use cases and also might beat aaf regarding re-indexing time,
it simply doesn't suit my needs when it comes to more complex
scenarios. Ferret is much more capable regarding supported queries
and IR features in general, and aaf's Rails integration saves you
much of the maintenance hassles you mentioned. And you aren't
limited to content stored in the database with Ferret and aaf - I
have a project where I crawl static html via rdig and index a
product database, and all can be searched at once through a simple
search form...
Cheers,
Jens
--
Jens Krämer
Finkenlust 14, 06449 Aschersleben, Germany
VAT Id DE251962952
http://www.jkraemer.net/ - Blog
http://www.omdb.org/ - The new free film database
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk