You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/01/16 22:30:00 UTC
svn commit: r496865 -
/incubator/solr/trunk/client/ruby/solrb/lib/solr/response.rb
Author: ehatcher
Date: Tue Jan 16 13:29:59 2007
New Revision: 496865
URL: http://svn.apache.org/viewvc?view=rev&rev=496865
Log:
temporary change, make parsed response publicly available until facets are robustly implemented. seems odd that facet response is not inside the *response* container though
Modified:
incubator/solr/trunk/client/ruby/solrb/lib/solr/response.rb
Modified: incubator/solr/trunk/client/ruby/solrb/lib/solr/response.rb
URL: http://svn.apache.org/viewvc/incubator/solr/trunk/client/ruby/solrb/lib/solr/response.rb?view=diff&rev=496865&r1=496864&r2=496865
==============================================================================
--- incubator/solr/trunk/client/ruby/solrb/lib/solr/response.rb (original)
+++ incubator/solr/trunk/client/ruby/solrb/lib/solr/response.rb Tue Jan 16 13:29:59 2007
@@ -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 @@
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