Files
OpenSearch-Docs-Cn/_api-reference/units.md
T
Naarcha-AWS e119a93798 Index and OpenSearch TOC changes (#2946)
* Add new Query DSL section

Signed-off-by: Naarcha-AWS <[email protected]>

* Change config settings

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix links

Signed-off-by: Naarcha-AWS <[email protected]>

* Add Query DSL back to Search

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix remaining links

Signed-off-by: Naarcha-AWS <[email protected]>

* Last reorder

Signed-off-by: Naarcha-AWS <[email protected]>

* Add Heather's feedback

Signed-off-by: Naarcha-AWS <[email protected]>

* Add Query DSL section. Delete Index Data page

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix index title

Signed-off-by: Naarcha-AWS <[email protected]>

* Add correct title to managing indexes

Signed-off-by: Naarcha-AWS <[email protected]>

* Change config yml

Signed-off-by: Naarcha-AWS <[email protected]>

* Add permalinks for each page in query DSL section

Signed-off-by: Naarcha-AWS <[email protected]>

* :wq

---------

Signed-off-by: Naarcha-AWS <[email protected]>
2023-03-08 09:53:21 -06:00

1.2 KiB

layout, title, nav_order, redirect_from
layout title nav_order redirect_from
default Supported units 90
/opensearch/units/

Supported units

OpenSearch supports the following units for all REST operations:

Unit Description Example
Times The supported units for time are d for days, h for hours, m for minutes, s for seconds, ms for milliseconds, micros for microseconds, and nanos for nanoseconds. 5d or 7h
Bytes The supported units for byte size are b for bytes, kb for kibibytes, mb for mebibytes, gb for gibibytes, tb for tebibytes, and pb for pebibytes. Despite the base-10 abbreviations, these units are base-2; 1kb is 1,024 bytes, 1mb is 1,048,576 bytes, etc. 7kb or 6gb
Distances The supported units for distance are mi for miles, yd for yards, ft for feet, in for inches, km for kilometers, m for meters, cm for centimeters, mm for millimeters, and nmi or NM for nautical miles. 5mi or 4ft
Quantities without units For large values that don't have a unit, use k for kilo, m for mega, g for giga, t for tera, and p for peta. 5k for 5,000

To convert output units to human-readable values, see Common REST parameters.