temporary change, make parsed response publicly available until facets are robustly implemented. seems odd that facet response is not inside the *response* container though

git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-01-16 21:29:59 +00:00
parent 4f85c3998b
commit ce8064d4bb
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
module Solr
class Response
attr_reader :header, :raw_response, :data
attr_reader :header, :raw_response, :data, :parsed_response
def initialize(body)
@raw_response = body
if match = /^<result status="(\d+)"/.match(body)
@ -27,7 +27,7 @@ module Solr
class RubyResponse < Response
def initialize(body)
super(body)
parsed_response = eval(body)
@parsed_response = eval(body)
@header = parsed_response['responseHeader']
@data = parsed_response['response']
end