Hello everyone. Let us say I have a simple blog application, with ferret set up and running, performing searches on posts and comments (which are using acts_as_ferret). My question is: is it possible, for each object which acts_as_ferret (let us take, for example, a post), to retrieve the list of words indexed by ferret in that very object? Thanks in advance. Regards, Rey9999 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
say we have a product with a ferret index on description, then @product = Product.find(11665955) logger.info "FOO: #{@product.content_for_field_name(:description)}" would give you something on that line -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Well, I tried this, but it returns me the whole content of the indexed field. Isn''t Ferret supposed not to index stopwords? I know it does because if i try to perform a ferret search using, for example, the keyword "The", I get no results (even if this keyword is contained in some of my records). Alternatively, is there a way to clean up a string from the stopwords used by ferret? Thanks in advance Rey9999 On 4 Giu, 17:23, Thorsten Mueller <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> say we have a product with a ferret index on description, then > > @product = Product.find(11665955) > logger.info "FOO: #...@product.content_for_field_name(:description)}" > > would give you something on that line > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---