SOLR-8902: fix glob test (put back the fields.clear())

This commit is contained in:
Ryan McKinley 2016-03-25 13:49:25 -07:00
parent f785d2a034
commit e26c0b7125
1 changed files with 7 additions and 0 deletions

View File

@ -130,6 +130,13 @@ public class SolrReturnFields extends ReturnFields {
}
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 ) {
transformer = augmenters.getTransformer(0);