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
This commit is contained in:
Erik Hatcher 2007-01-17 07:55:00 +00:00
parent 59f0a1bc46
commit bd3e81a1a8
1 changed files with 6 additions and 0 deletions

View File

@ -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']