lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r922765 - in /lucene/solr/trunk: CHANGES.txt src/solrj/org/apache/solr/client/solrj/response/QueryResponse.java
Date Sun, 14 Mar 2010 05:54:45 GMT
Author: yonik
Date: Sun Mar 14 05:54:45 2010
New Revision: 922765

URL: http://svn.apache.org/viewvc?rev=922765&view=rev
Log:
SOLR-1815: solrj preserve order of facet queries

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/response/QueryResponse.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=922765&r1=922764&r2=922765&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Sun Mar 14 05:54:45 2010
@@ -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
 ----------------------
 

Modified: lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/response/QueryResponse.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/response/QueryResponse.java?rev=922765&r1=922764&r2=922765&view=diff
==============================================================================
--- lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/response/QueryResponse.java (original)
+++ lucene/solr/trunk/src/solrj/org/apache/solr/client/solrj/response/QueryResponse.java Sun
Mar 14 05:54:45 2010
@@ -188,7 +188,7 @@ public class QueryResponse extends SolrR
   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 ) {



Mime
View raw message