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

Can't specify parent if no parent field has been configured #64

Open
Chadwiki opened this issue Feb 26, 2015 · 4 comments
Open

Can't specify parent if no parent field has been configured #64

Chadwiki opened this issue Feb 26, 2015 · 4 comments
Labels

Comments

@Chadwiki
Copy link

Receiving this error from recent config: Can't specify parent if no parent field has been configured

I switched from changelog/comment -> embedded mode to child.

I added both field type names, in change log and comment element.
"index": {
"index": "jira",

"type": "proj1_issue", .......

"changelog_mode": "child",
"changelog_type": "proj1_change",

"comment_mode": "child",
"comment_type": "proj1_comment",

  1. Second attempt, removed above river. I then tried to add into the opi_changelog/_mapping

followed in:
{
"proj1_changelog" : {
"_timestamp" : { "enabled" : true },
"_parent" : { "type" : "proj_issue" },
"properties" : {
"project_key" : {"type" : "string", "analyzer" : "keyword"},
"source" : {"type" : "string", "analyzer" : "keyword"}
}
}
}

@velias
Copy link
Member

velias commented Feb 27, 2015

Hi, I never changes type on existing data so I'm not sure how to do it correctly. You definitely have to correctly define _parent in the mapping for comments and change log types, but I'm not sure if it is possible to do it for existing data. Maybe you should completely remove old river and old index with jira data, then recreate index with new correct mappings (for all three types - issues, comments and changelog) and then add river again to index jira data from scratch.

@velias
Copy link
Member

velias commented Feb 27, 2015

BTW examples of correct basic mappings used during tests are available in https://github.com/searchisko/elasticsearch-river-jira/tree/master/src/test/resources/mappings

@Chadwiki
Copy link
Author

Thanks for response.

I did re-index but, I found my issues.
It was a config problem, used and older config and then a simple typo.

FYI: I saw a huge Indexing performance increase, moving from embedded to Child

I would also like to see this feature extended for the IssueLinks. :-)

@velias
Copy link
Member

velias commented Feb 28, 2015

Nice, create new issue for your feature request please and close this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants