public FieldStatsOptions addField ( String fieldName ) { Assert . hasText ( fieldName , "Fieldname for statistics must not be blank." ) ; return addField ( new SimpleField ( fieldName ) ) ; }
Adds a field via its name to the statistics to be requested .