David Balmain wrote:
> So :tags has multiple values. But you can't do this:
> 
>     doc = Ferret::Document.new
>     doc[:tag] = "ruby"
>     doc[:tag] = "rails"
>     doc[:tag] = "ferret"
> 
> You should do this:
> 
>     doc[:tag] = ["ruby", "rails", "ferret"]

That is exactly what I mean. And it looks like that is another way I can 
simplify my code with the new API. I can return an array from 
foo_for_ferret and have all the individual values counted.

Previously I did basically
 networks.each { |net| doc << Field.new('network', net.name) }

Thanks.

David

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

Reply via email to