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

No integer key for result #41

Open
wohnlice opened this issue May 9, 2018 · 0 comments
Open

No integer key for result #41

wohnlice opened this issue May 9, 2018 · 0 comments

Comments

@wohnlice
Copy link
Contributor

wohnlice commented May 9, 2018

This is more of a question than an issue. A user deleted some page which is still being found in elasticsearch and resulting in the following, from brain.py

Got not integer key for result: {u'_score': 4.167767, u'_type': u'portal_catalog', u'_id': u'c3d6e66a2b924125b367a27c475b65de', u'fields': {u'path.path': [u'/db11/webdev/projects/cpfp-drupal']}, u'_index': u'plone-db11-webdev-portal_catalog_1'}

The error is swallowed by an exception clause and returns a value of None, which I then ignore in my search results. But I don't understand, what would cause this desync? Shouldn't it be removed from elasticsearch when the page is deleted in Plone? I am unable to reproduce this when deleting other pages, so I don't know what could cause this case to happen.

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

No branches or pull requests

1 participant