Elasticsearch: Use constants for default values and types (#60673)

This commit is contained in:
Ivana Huckova
2022-12-22 15:08:15 +01:00
committed by GitHub
parent 658414a025
commit a1ef3d77f2
4 changed files with 29 additions and 14 deletions

View File

@@ -26,6 +26,11 @@ const (
filtersType = "filters"
termsType = "terms"
geohashGridType = "geohash_grid"
// Document types
rawDocumentType = "raw_document"
rawDataType = "raw_data"
// Logs type
logsType = "logs"
)
func parseResponse(responses []*es.SearchResponse, targets []*Query) (*backend.QueryDataResponse, error) {