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

125 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# توضیح پاسخ ها
```
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
}
```
معنی: این تسک آی دی وجود ندارد