Wow, that is a very significant issue.

Just to clarify: will saving the object  _overwrite_ previously  
indexed columns?


On Apr 1, 2007, at 3:29 PM, Manoel Lemos wrote:

> 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:
>
> Class Blog ...
>   acts_as_ferret  :fields => {  :title                => {:boost =>  
> 2},
>                                 :sub_title            => {},
>                                 :url                  => {} }
> End
>
> You'll have issues if you do this:
>
> b = Blog.find(:first, :select => "id, author")
> b.save
>
> If you want to use :select, you must include the fields AAF needs,  
> like
> this:
>
> b = Blog.find(:first, :select => "id, author, title, sub_title, url")
> b.save
>
> []s
>
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> 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

Reply via email to