Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error:[has_parent] no join field has been configured #77050

Open
xueyin220807 opened this issue Aug 31, 2021 · 2 comments
Open

error:[has_parent] no join field has been configured #77050

xueyin220807 opened this issue Aug 31, 2021 · 2 comments
Labels
>bug needs:reproduction :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@xueyin220807
Copy link

一个GET请求:http://localhost:9200/my-index-000010/_search
请求正文:
{
"query": {
"has_parent": {
"parent_type": "question",
"query" : {
"match_all" : {}
}
}
}
}
响应体:
{
"error": {
"root_cause": [
{
"type": "query_shard_exception",
"reason": "[has_parent] no join field has been configured",
"index_uuid": "ILas4Cj4SEynC02T1f4juA",
"index": "my-index-000010"
}
],
"type": "search_phase_execution_exception",
"reason": "all shards failed",
"phase": "query",
"grouped": true,
"failed_shards": [
{
"shard": 0,
"index": "my-index-000010",
"node": "qyWfA-ewRZe_ZLeMwNimGw",
"reason": {
"type": "query_shard_exception",
"reason": "[has_parent] no join field has been configured",
"index_uuid": "ILas4Cj4SEynC02T1f4juA",
"index": "my-index-000010"
}
}
]
},
"status": 400
}
请问[has_parent] no join field has been configured错误是什么意思?

@xueyin220807 xueyin220807 added >bug needs:triage Requires assignment of a team area label labels Aug 31, 2021
@not-napoleon
Copy link
Member

Hello, and thank you for your interest in Elasticsearch. In order to investigate this issue, we need more complete reproduction steps. Specifically, please share the mappings and test data you used to get this error. Thank you!

@not-napoleon not-napoleon added :Search/Search Search-related issues that do not fall into other categories needs:reproduction and removed needs:triage Requires assignment of a team area label labels Sep 1, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Sep 1, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug needs:reproduction :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

3 participants