Skip to main content
Version: 0.16

Overview

The Elasticsearch compatibility layer in GreptimeDB is designed to provide a certain degree of compatibility with Elasticsearch, allowing users to migrate existing Elasticsearch applications to GreptimeDB with relative ease.

However, GreptimeDB does not fully support all features and functionalities of Elasticsearch. In some cases, users may need to adjust or modify their applications to achieve the same functionality in GreptimeDB.

Principle

Essentially, GreptimeDB receives Elasticsearch QueryDSL syntax, converts it to GreptimeDB's query syntax, and returns data in the Elasticsearch API format to achieve compatibility.

Supported API List

APIMethodDescription
/{table_name}/_searchPOSTExecute search query
/{table_name}/_async_searchPOSTExecute search query
/_resolve/index/{schema_name}POSTIndex document
/{table_name}/_field_capsGETGet field info

Supported Query List

QueryDescription
matchMatch query
match_phrasePhrase match
match_allMatch all
termExact match
prefixPrefix match
rangeRange query
existsField existence
boolCompound query
aggregationAggregation query

Supported Aggregation List

AggregationStatusDescription
avgAverage value
sumSum
minMinimum value
maxMaximum value
countCount
date_histogramDate histogram
histogramHistogram
termsTerms

Querying GreptimeDB with Kibana

For more information, please contact us.