elastic_tutorial/The Elasticsearch Documentation/results-fa.md
2025-04-09 09:37:23 +03:30

2.8 KiB
Raw Blame History

توضیح پاسخ ها

Code: 
    PUT /firstindex

Result: 
    "acknowledged": true,
    "shards_acknowledged": true,
    "index": "firstindex"
  • acknowledged: درخواست موفقیت آمیز بوده یا نه
  • shards_acknowledged: تمام بخش ها توسط سرور تایید شده یا نه
  • index: اسم ایندکس

Code: 
    PUT /firstindex

Result: 
    {
    "error": {
        "root_cause": [
            {
                "type": "resource_already_exists_exception",
                "reason": "index [firstindex/mctRe4VYTs28SWLGZ4hEiQ] already exists",
                "index_uuid": "mctRe4VYTs28SWLGZ4hEiQ",
                "index": "firstindex"
            }
        ],
        "type": "resource_already_exists_exception",
        "reason": "index [firstindex/mctRe4VYTs28SWLGZ4hEiQ] already exists",
        "index_uuid": "mctRe4VYTs28SWLGZ4hEiQ",
        "index": "firstindex"
    },
    "status": 400
}

معنی: index از قبل وجود دارد


Code: 
   Delete /users/_doc/0313123

Result: 
   {
    "error": {
        "root_cause": [
            {
                "type": "index_not_found_exception",
                "reason": "no such index [users]",
                "resource.type": "index_expression",
                "resource.id": "users",
                "index_uuid": "_na_",
                "index": "users"
            }
        ],
        "type": "index_not_found_exception",
        "reason": "no such index [users]",
        "resource.type": "index_expression",
        "resource.id": "users",
        "index_uuid": "_na_",
        "index": "users"
    },
    "status": 404
}

معنی: این آی دی تعریف نشده است

Code:
    Delete /Index

Result: 
    {
    "error": {
        "root_cause": [
            {
                "type": "index_not_found_exception",
                "reason": "no such index [firsftindex]",
                "resource.type": "index_or_alias",
                "resource.id": "firsftindex",
                "index_uuid": "_na_",
                "index": "firsftindex"
            }
        ],
        "type": "index_not_found_exception",
        "reason": "no such index [firsftindex]",
        "resource.type": "index_or_alias",
        "resource.id": "firsftindex",
        "index_uuid": "_na_",
        "index": "firsftindex"
    },
    "status": 404
}

معنی: این ایندکس وجود ندارد


Code:
    GET _tasks/1

Result: 
   {
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "malformed task id 1"
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "malformed task id 1"
    },
    "status": 400
}

معنی: این تسک آی دی وجود ندارد