PósResumoTítuloBR
PósResumoTítuloBR · GPT 작업
Elasticsearch API
POST /apm-b/_search?filter_path=-aggregations.*.buckets.key_as_stringSearch for documents
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Elasticsearch API",
"license": {
"name": "Apache 2.0"
}
},
"servers": [
{
"url": "https://joaoli13.mooo.com/"
}
],
"paths": {
"/apm-b/_search?filter_path=-aggregations.*.buckets.key_as_string": {
"post": {
"summary": "Search for documents",
"operationId": "searchDocuments",
"tags": [
"search"
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"query": {
"type": "object",
"properties": {
"query_string": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query"
}
}
}
}
},
"sort": {
"$ref": "#/components/schemas/Sort"
},
"from": {
"type": "integer",
"description": "Start index for search results"
},
"size": {
"type": "integer",
"description": "Number of search results to return"
},
"_source": {
"type": "array",
"items": {
"type": "string"
},
"description": "Specific fields to return in the search results"
},
"aggs": {
"type": "object",
"properties": {
"years": {
"type": "object",
"properties": {
"terms": {
"type": "object",
"properties": {
"field": {
"type": "string",
"example": "AN_BASE"
}
}
}
}
}
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "Search results",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"took": {
"type": "integer"
},
"timed_out": {
"type": "boolean"
},
"_shards": {
"$ref": "#/components/schemas/Shards"
},
"hits": {
"$ref": "#/components/schemas/Hits"
},
"aggregations": {
"type": "object",
"properties": {
"years": {
"type": "object",
"properties": {
"doc_count_error_upper_bound": {
"type": "integer"
},
"sum_other_doc_count": {
"type": "integer"
},
"buckets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "integer"
},
"doc_count": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}
}
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
},
"Document": {
"type": "object",
"properties": {
"AN_BASE": {
"type": "integer",
"description": "Ano da produção"
},
"NM_PRODUCAO": {
"type": "string",
"description": "Título da produção."
},
"NM_DISCENTE": {
"type": "string",
"description": "Nome do Aluno"
}
},
"required": [
"AN_BASE",
"NM_PRODUCAO",
"NM_DISCENTE"
],
"additionalProperties": true
}
}
}
}