Hi Ian,

yes, you'll have to rebuild the index if you want the existing
documents to have the new field.

Jens

On Tue, Aug 15, 2006 at 05:22:53PM +0200, Ian Zabel wrote:
> David Balmain wrote:
> > Try adding 'forum_id' to your list of fields and write the query like 
> > this;
> > 
> >     Comment.find_by_contents("test AND NOT forum_id:13")
> 
> Jens Kraemer wrote:
> > If you don't want to filter results _after_ getting them from
> > acts_as_ferret, including the information needed to filter search 
> > results
> > in the index is necessary.
> 
> Thanks guys! This is what I was looking for. It makes sense that I would 
> have to index the appropriate columns to be able to filter on them.
> 
> Do I have to add that column to my column list and then rebuild the 
> index from scratch for that model? Or is there a better way? I ask 
> because it took about 4 hours to finish indexing the comments table 
> (350k rows), and the idea of rebuilding the index each time I want to 
> add a new column to the index is a bit daunting :)
> 
> Thanks,
> Ian.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to