export function shouldReadFieldFromDocValues ( aggregatable , opensearchType ) { return ( aggregatable && ! [ 'text' , 'geo_shape' ] . includes ( opensearchType ) && ! opensearchType . startsWith ( '_' ) ) ; }