ES论坛:https://discuss.elastic.co/
ES文档:https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
ES JAVA API:https://www.elastic.co/guide/en/elasticsearch/reference/6.8/api-java.html
1.删除索引:
DELETE /test1
2.查询全部数据:
GET test1/_search
{
"query": {
"match_all": {}
}
}
3.查询字段为空的数据(字段不存在)
GET /test1/test1/_search
{
"query": {
"bool": {
"must_not": [
{
"exists": {"field": "item_id"}
}
]
}
}
}
-----------------------------手动分割线-----------------------------------------------
logstash 输出到 es 403 问题
es当容量超过假设90%(可自行设置)时,会禁止写入,报403问题
解决方案,整理出磁盘空间后 ,执行如下
PUT _settings
{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}
慢慢补充…