mirror of https://github.com/apache/lucene.git
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:
parent
e510d3f530
commit
e15954f5a4
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue