On Martes, 18 de Mayo de 2010 18:27:48 Benjamin Adler escribió:
> Sergio,
>
> I updated the wiki's security chapter, please have a look and see
> whether I got it right.

It's ok thanks. I have added information about authorized_for_#{action_name}? 
and remove old tips about existing_record_check?

>
> Also, I'm currently interested in searching. Due to many records and
> complex relations, a search in my main table currently takes about 6
> seconds, and this will only grow worse.

Have you set index in some columns?

>
> I was wondering whether there are any experiences about using Lucene,
> ferret, Solr, acts_as_solr etc. Has anyone done this before, are there
> rough guidelines on what methods to override to get indexing and search
> right?

I haven't done it before with AS, but it shouldn't be hard to make an action 
module to search with some indexer. I have used acts_as_ferret and it adds a 
find_with_ferret method to search. That action module should override find_page 
method and use own method when a search is requested and overrided method in 
other cases.

Currently search modules add a before_filter do_search which set some 
conditions to be used later by find_page method in do_list. I could add support 
for custom find methods, so your search module would set some variables to be 
used by find_page method, and you wouldn't to override find_page.

For example, a ferret_search module could set @find_method to :find_with_ferret 
and @find_argument to params[:search], it would set 
active_scaffold_config.list.pagination to false when search is done to skip 
count query. In this way AS could support plugins like active_scaffold_lucene 
and active_scaffold_ferret.


>
> Also, would it be possible to generate a result page with one AS table
> for each Class of search hit? For example, if my search yields two cars
> and three people, can AS generate one Cars and one People-Table for
> showing the five results?

I'm not sure I'm understanding you, are you talking about searching in 
multiple models at the same time?

>
> If others are interested, I can start a new page on the wiki for that.
> But I'm still on the very beginning.
>
> cheers,
> ben

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

  • Search Benjamin Adler
    • Re: Search Sergio Cambra .:: entreCables S.L. ::.

Reply via email to