I have design question and I'm wondering what's the best way to solve 
it.  I'm trying to index HTML content where I have a single model object 
call it Article that is an acts_as_ferret model, and an article consists 
of many HTML files.  I would like to index all of the content of the 
article with ferret and search across it.  However, since the article's 
content is spread over several files how would I do that if I don't have 
an object in the database for each page?  Is there a way from within my 
Article object to add more than one Document to the index?  These pages 
would obviously be attached to the life cycle of the Article.  In other 
words if I remove the article I want to remove all the pages that went 
along with that article.  How would I do that?

Another question I have is I would like to search the elements of the 
article like author, title, etc, and search the contents of those 
Articles within one search field.  Can I place all of this data inside a 
single index?  Or do I have to use the multi_search method?

Thanks
Charlie

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to