mirror of https://github.com/apache/lucene.git
SOLR-611 -- Expose sort_values returned by QueryComponent in SolrJ's QueryResponse
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@680319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
da634f42eb
commit
0cda9c8825
|
@ -323,6 +323,8 @@ New Features
|
|||
|
||||
61. SOLR-522: Make analysis.jsp show payloads. (Tricia Williams via yonik)
|
||||
|
||||
62. SOLR-611: Expose sort_values returned by QueryComponent in SolrJ's QueryResponse (Dan Rosher via shalin)
|
||||
|
||||
|
||||
Changes in runtime behavior
|
||||
1. SOLR-559: use Lucene updateDocument, deleteDocuments methods. This
|
||||
|
|
|
@ -40,6 +40,7 @@ public class QueryResponse extends SolrResponseBase
|
|||
// Direct pointers to known types
|
||||
private NamedList<Object> _header = null;
|
||||
private SolrDocumentList _results = null;
|
||||
private NamedList<ArrayList> _sortvalues = null;
|
||||
private NamedList<Object> _facetInfo = null;
|
||||
private NamedList<Object> _debugInfo = null;
|
||||
private NamedList<Object> _highlightingInfo = null;
|
||||
|
@ -86,6 +87,9 @@ public class QueryResponse extends SolrResponseBase
|
|||
else if( "response".equals( n ) ) {
|
||||
_results = (SolrDocumentList) res.getVal( i );
|
||||
}
|
||||
else if( "sort_values".equals( n ) ) {
|
||||
_sortvalues = (NamedList<ArrayList>) res.getVal( i );
|
||||
}
|
||||
else if( "facet_counts".equals( n ) ) {
|
||||
_facetInfo = (NamedList<Object>) res.getVal( i );
|
||||
extractFacetInfo( _facetInfo );
|
||||
|
@ -209,6 +213,10 @@ public class QueryResponse extends SolrResponseBase
|
|||
public SolrDocumentList getResults() {
|
||||
return _results;
|
||||
}
|
||||
|
||||
public NamedList<ArrayList> getSortValues(){
|
||||
return _sortvalues;
|
||||
}
|
||||
|
||||
public Map<String, Object> getDebugMap() {
|
||||
return _debugMap;
|
||||
|
|
Loading…
Reference in New Issue