mirror of https://github.com/apache/lucene.git
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:
parent
59f0a1bc46
commit
bd3e81a1a8
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue