On 9/20/06, David Sheldon <[EMAIL PROTECTED]> wrote:
> David, are you supposed to be able to set several values for a field in
> the document?

I think I know what you are asking here but I'm not sure. You can do
this in Ferret:

    index << {:content = "yada yada yada", :tags => ["ruby", "rails", "ferret"]}

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"]

Or this:

    doc[:tag] = ["ruby"]
    doc[:tag] << "rails"
    doc[:tag] << "ferret"

After all, Ferret::Document is just a Hash with a boost field.

Perhaps I have just misunderstood you completely so please let me know if I did.

Cheers,
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to