mirror of https://github.com/apache/lucene.git
SOLR-8902: fix glob test (put back the fields.clear())
This commit is contained in:
parent
f785d2a034
commit
e26c0b7125
|
@ -130,6 +130,13 @@ public class SolrReturnFields extends ReturnFields {
|
||||||
}
|
}
|
||||||
augmenters.addTransformer( new RenameFieldTransformer( from, to, copy ) );
|
augmenters.addTransformer( new RenameFieldTransformer( from, to, copy ) );
|
||||||
}
|
}
|
||||||
|
if( !_wantsAllFields && !globs.isEmpty() ) {
|
||||||
|
// TODO??? need to fill up the fields with matching field names in the index
|
||||||
|
// and add them to okFieldNames?
|
||||||
|
// maybe just get all fields?
|
||||||
|
// this would disable field selection optimization... i think thatis OK
|
||||||
|
fields.clear(); // this will get all fields, and use wantsField to limit
|
||||||
|
}
|
||||||
|
|
||||||
if( augmenters.size() == 1 ) {
|
if( augmenters.size() == 1 ) {
|
||||||
transformer = augmenters.getTransformer(0);
|
transformer = augmenters.getTransformer(0);
|
||||||
|
|
Loading…
Reference in New Issue