lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r927533 - in /lucene/dev/trunk/solr: CHANGES.txt src/java/org/apache/solr/handler/component/TermsComponent.java
Date Thu, 25 Mar 2010 18:38:26 GMT
Author: yonik
Date: Thu Mar 25 18:38:26 2010
New Revision: 927533

URL: http://svn.apache.org/viewvc?rev=927533&view=rev
Log:
SOLR-1379: fix term component so fields are map elements

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/src/java/org/apache/solr/handler/component/TermsComponent.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=927533&r1=927532&r2=927533&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Thu Mar 25 18:38:26 2010
@@ -22,6 +22,13 @@ See the tutorial at http://lucene.apache
 $Id$
 
 ==================  3.1.0-dev ==================
+Versions of Major Components
+---------------------
+Apache Lucene trunk
+Apache Tika 0.6
+Carrot2 3.1.0
+
+
 Upgrading from Solr 1.4
 ----------------------
 
@@ -35,7 +42,8 @@ Upgrading from Solr 1.4
 
 * Using solr.xml is recommended for single cores also (SOLR-1621)
 
-* Old syntax of <highlighting> is deprecated (SOLR-1696)
+* Old syntax of <highlighting> configuration in solrconfig.xml
+  is deprecated (SOLR-1696)
 
 * The deprecated HTMLStripReader, HTMLStripWhitespaceTokenizerFactory and
   HTMLStripStandardTokenizerFactory were removed. To strip HTML tags, 
@@ -47,11 +55,11 @@ Upgrading from Solr 1.4
   shorter fields, this may actually be an improvement, as the compression
   used was not very good for short text. Some indexes may get larger though.
 
-Versions of Major Components
----------------------
-Apache Lucene trunk
-Apache Tika 0.6
-Carrot2 3.1.0
+* SOLR-1845: The TermsComponent response format was changed so that the
+  "terms" container is a map instead of a named list.  This affects
+   response formats like JSON, but not XML. (yonik)
+  
+
 
 Detailed Change List
 ----------------------
@@ -116,6 +124,7 @@ New Features
 * SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage.
   (Alex Baranov via yonik)
 
+
 Optimizations
 ----------------------
 
@@ -292,6 +301,9 @@ Other Changes
 
 * SOLR-1821: Fix TimeZone-dependent test failure in TestEvaluatorBag.
   (Chris Male via rmuir)
+
+
+  
   
 Build
 ----------------------

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/handler/component/TermsComponent.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/handler/component/TermsComponent.java?rev=927533&r1=927532&r2=927533&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/handler/component/TermsComponent.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/handler/component/TermsComponent.java Thu
Mar 25 18:38:26 2010
@@ -72,7 +72,7 @@ public class TermsComponent extends Sear
       String lowerStr = params.get(TermsParams.TERMS_LOWER, null);
       String[] fields = params.getParams(TermsParams.TERMS_FIELD);
       if (fields != null && fields.length > 0) {
-        NamedList terms = new NamedList();
+        NamedList terms = new SimpleOrderedMap();
         rb.rsp.add("terms", terms);
         int limit = params.getInt(TermsParams.TERMS_LIMIT, 10);
         if (limit < 0) {



Mime
View raw message