mirror of https://github.com/apache/lucene.git
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:
parent
4f85c3998b
commit
ce8064d4bb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue