From e15954f5a4ee7f800b2745b6d0b232705b3ce112 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Fri, 25 Mar 2011 21:52:05 +0000 Subject: [PATCH] SOLR-2444: fix parsing of key in fl git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1085572 13f79535-47bb-0310-9956-ffa450edef68 --- solr/src/java/org/apache/solr/search/ReturnFields.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/solr/src/java/org/apache/solr/search/ReturnFields.java b/solr/src/java/org/apache/solr/search/ReturnFields.java index e3061f62d10..9bc5411c09e 100644 --- a/solr/src/java/org/apache/solr/search/ReturnFields.java +++ b/solr/src/java/org/apache/solr/search/ReturnFields.java @@ -197,9 +197,6 @@ public class ReturnFields // TODO? pass params to transformers? augmenters.addTransformer( new ExplainAugmenter( disp, ExplainAugmenter.Style.NL ) ); } - else if( key != null ){ - rename.add(field, key); - } continue; } // an invalid field name... reset the position pointer to retry @@ -208,8 +205,8 @@ public class ReturnFields } } - if (field == null && sp.pos > start) { - // if we are here, we must have read "key = " + if (key != null) { + // we read "key = " field = sp.getId(null); ch = sp.ch(); if (field != null && (ch==' ' || ch == ',' || ch==0)) {