SOLR-1815: solrj preserve order of facet queries

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@922765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-03-14 05:54:45 +00:00
parent f8fa54f767
commit 3c8644bf24
2 changed files with 3 additions and 1 deletions

View File

@ -92,6 +92,8 @@ New Features
to info currently available from registry.jsp and stats.jsp
(ehatcher, hossman)
* SOLR-1815: SolrJ now preserves the order of facet queries. (yonik)
Optimizations
----------------------

View File

@ -188,7 +188,7 @@ public class QueryResponse extends SolrResponseBase
private void extractFacetInfo( NamedList<Object> info )
{
// Parse the queries
_facetQuery = new HashMap<String, Integer>();
_facetQuery = new LinkedHashMap<String, Integer>();
NamedList<Integer> fq = (NamedList<Integer>) info.get( "facet_queries" );
if (fq != null) {
for( Map.Entry<String, Integer> entry : fq ) {