Hi:
I'm trying to index a Hash in ruby and this is what I get:
irb(main):211:0> indexer << {:test => { :test1 => "hola", :test2=> 23}}
=> nil
irb(main):212:0> indexer[0][:test]
=> "{:test1=>"hi", :test2=>23}"
I take a look to the code of index.rb and I found that add_document method don't take into account if something is a Hash and convert it to string. Can this be patched to take into account this case?
Regards from Canary Islands
Manuel Padrón Martínez
Are you saying that is what you want to get? This is what I get.
To get what you have I would have to do this;
If this is what you want, it shouldn't be too hard to write a wrapper to do this. I don't really think it is an issue though.