You're viewing version 2.4 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Supported units
OpenSearch supports the following units for all REST operations:
| Unit | Description | Example | 
|---|---|---|
| Times | The supported units for time are dfor days,hfor hours,mfor minutes,sfor seconds,msfor milliseconds,microsfor microseconds, andnanosfor nanoseconds. | 5dor7h | 
| Bytes | The supported units for byte size are bfor bytes,kbfor kibibytes,mbfor mebibytes,gbfor gibibytes,tbfor tebibytes, andpbfor pebibytes. Despite the base-10 abbreviations, these units are base-2;1kbis 1,024 bytes,1mbis 1,048,576 bytes, etc. | 7kbor6gb | 
| Distances | The supported units for distance are mifor miles,ydfor yards,ftfor feet,infor inches,kmfor kilometers,mfor meters,cmfor centimeters,mmfor millimeters, andnmiorNMfor nautical miles. | 5mior4ft | 
| Quantities without units | For large values that don’t have a unit, use kfor kilo,mfor mega,gfor giga,tfor tera, andpfor peta. | 5kfor 5,000 | 
To convert output units to human-readable values, see Common REST parameters.