SOLR-1379: fix term component so fields are map elements

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@927533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-03-25 18:38:26 +00:00
parent a6e90e861c
commit 214bfc6f5f
2 changed files with 19 additions and 7 deletions

View File

@ -22,6 +22,13 @@ See the tutorial at http://lucene.apache.org/solr/tutorial.html
$Id$ $Id$
================== 3.1.0-dev ================== ================== 3.1.0-dev ==================
Versions of Major Components
---------------------
Apache Lucene trunk
Apache Tika 0.6
Carrot2 3.1.0
Upgrading from Solr 1.4 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) * 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 * The deprecated HTMLStripReader, HTMLStripWhitespaceTokenizerFactory and
HTMLStripStandardTokenizerFactory were removed. To strip HTML tags, 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 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. used was not very good for short text. Some indexes may get larger though.
Versions of Major Components * SOLR-1845: The TermsComponent response format was changed so that the
--------------------- "terms" container is a map instead of a named list. This affects
Apache Lucene trunk response formats like JSON, but not XML. (yonik)
Apache Tika 0.6
Carrot2 3.1.0
Detailed Change List Detailed Change List
---------------------- ----------------------
@ -116,6 +124,7 @@ New Features
* SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage. * SOLR-1379: Add RAMDirectoryFactory for non-persistent in memory index storage.
(Alex Baranov via yonik) (Alex Baranov via yonik)
Optimizations Optimizations
---------------------- ----------------------
@ -293,6 +302,9 @@ Other Changes
* SOLR-1821: Fix TimeZone-dependent test failure in TestEvaluatorBag. * SOLR-1821: Fix TimeZone-dependent test failure in TestEvaluatorBag.
(Chris Male via rmuir) (Chris Male via rmuir)
Build Build
---------------------- ----------------------

View File

@ -72,7 +72,7 @@ public class TermsComponent extends SearchComponent {
String lowerStr = params.get(TermsParams.TERMS_LOWER, null); String lowerStr = params.get(TermsParams.TERMS_LOWER, null);
String[] fields = params.getParams(TermsParams.TERMS_FIELD); String[] fields = params.getParams(TermsParams.TERMS_FIELD);
if (fields != null && fields.length > 0) { if (fields != null && fields.length > 0) {
NamedList terms = new NamedList(); NamedList terms = new SimpleOrderedMap();
rb.rsp.add("terms", terms); rb.rsp.add("terms", terms);
int limit = params.getInt(TermsParams.TERMS_LIMIT, 10); int limit = params.getInt(TermsParams.TERMS_LIMIT, 10);
if (limit < 0) { if (limit < 0) {