Jens Kraemer wrote: > On Mon, Oct 02, 2006 at 03:30:59PM +0200, Charlie Hubbard wrote: >> words if I remove the article I want to remove all the pages that went >> along with that article. How would I do that? > > Do you want to be able to find single html files in search results, or > is it ok to only find the whole article, without knowing which file the > hit was in ? > > In the first case, you can either create a Page model representing a > single page and index that, or don't use acts_as_ferret at all and do > the indexing yourself.
This is actually more the scenario. I want the user to be able to jump right to the relevant portions of article and see their search results. Possibly with highlights etc. Mainly because these articles can be quite large. >> 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? > > you'll only need multi_search if you have several indexes (that is, > several Model classes where you called acts_as_ferret). > In your case, if you choose the second way, just index your meta data > together with the content, aaf will by default search in all fields. So bottom line is create a Page object for each page of the article and put that stuff in the DB, and use the acts_as_ferret options to find it. Use the multi-search across the two models. Thanks Charlie -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

