Loading

ES|QL TO_GEOHASH function

Embedded
field

Input value. The input can be a single- or multi-valued column or an expression.

Converts an input value to a geohash value. A string will only be successfully converted if it respects the geohash format, as described for the geohash grid aggregation.

field result
geohash geohash
keyword geohash
long geohash
text geohash
ROW string = "u3bu"
| EVAL geohash = TO_GEOHASH(string)
		
string:keyword geohash:geohash
u3bu u3bu