SOLR-536 -- remove recently added "getBeans()" function from QueryResponse. Adding the variable SolrServer makes the response unserializable.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@671034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-06-24 05:53:17 +00:00
parent e8f25fa6c3
commit 0953aa3e6a
2 changed files with 2 additions and 13 deletions

View File

@ -81,7 +81,7 @@ public class QueryRequest extends SolrRequest
try
{
long startTime = System.currentTimeMillis();
QueryResponse res = new QueryResponse( server.request( this ), server);
QueryResponse res = new QueryResponse( server.request( this ) );
res.setElapsedTime( System.currentTimeMillis()-startTime );
return res;
}

View File

@ -56,12 +56,7 @@ public class QueryResponse extends SolrResponseBase
// Debug Info
private Map<String,Object> _debugMap = null;
private Map<String,String> _explainMap = null;
private SolrServer solrServer;
public QueryResponse( NamedList<Object> res , SolrServer solrServer){
this(res);
this.solrServer = solrServer;
}
public QueryResponse( NamedList<Object> res )
{
@ -249,12 +244,6 @@ public class QueryResponse extends SolrResponseBase
public List<FacetField> getLimitingFacets() {
return _limitingFacets;
}
public <T> List<T> getBeans(Class<T> type){
return solrServer == null ?
new DocumentObjectBinder().getBeans(type,_results):
solrServer.getBinder().getBeans(type, _results);
}
}