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