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
This commit is contained in:
Yonik Seeley 2011-03-25 21:52:05 +00:00
parent e510d3f530
commit e15954f5a4
1 changed files with 2 additions and 5 deletions

View File

@ -197,9 +197,6 @@ public class ReturnFields
// TODO? pass params to transformers? // TODO? pass params to transformers?
augmenters.addTransformer( new ExplainAugmenter( disp, ExplainAugmenter.Style.NL ) ); augmenters.addTransformer( new ExplainAugmenter( disp, ExplainAugmenter.Style.NL ) );
} }
else if( key != null ){
rename.add(field, key);
}
continue; continue;
} }
// an invalid field name... reset the position pointer to retry // an invalid field name... reset the position pointer to retry
@ -208,8 +205,8 @@ public class ReturnFields
} }
} }
if (field == null && sp.pos > start) { if (key != null) {
// if we are here, we must have read "key = " // we read "key = "
field = sp.getId(null); field = sp.getId(null);
ch = sp.ch(); ch = sp.ch();
if (field != null && (ch==' ' || ch == ',' || ch==0)) { if (field != null && (ch==' ' || ch == ',' || ch==0)) {