From bd3e81a1a87c866f61324d7cf245b659feb57c5f Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Wed, 17 Jan 2007 07:55:00 +0000 Subject: [PATCH] add TODO discussion comment to ruby.rb git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496953 13f79535-47bb-0310-9956-ffa450edef68 --- client/ruby/solrb/lib/solr/response/ruby.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/ruby/solrb/lib/solr/response/ruby.rb b/client/ruby/solrb/lib/solr/response/ruby.rb index 9ef05d94295..0a574cf560e 100644 --- a/client/ruby/solrb/lib/solr/response/ruby.rb +++ b/client/ruby/solrb/lib/solr/response/ruby.rb @@ -7,6 +7,12 @@ module Solr def initialize(ruby_code) super(ruby_code) begin + #TODO: what about pulling up data/header/response to ResponseBase, + # or maybe a new middle class like SelectResponseBase since + # all Select queries return this same sort of stuff?? + # XML (&wt=xml) and Ruby (&wt=ruby) responses contain exactly the same structure. + # a goal of solrb is to make it irrelevant which gets used under the hood, + # but favor Ruby responses. @data = eval(ruby_code) @header = @data['responseHeader'] @response = @data['response']