collective / collective.elastic.ingest

Plone Search Integration: Ingestion service queue runner between Plone RestAPI and Open-/ElasticSearch
https://pypi.org/project/collective.elastic.ingest/
GNU General Public License v2.0
3 stars 0 forks source link

ERROR while indexing siteroot: list index out of range #14

Closed animus888 closed 1 year ago

animus888 commented 1 year ago

In Plone 6 there was a change with the site path structure (siteroot). That's why we had to use following workaround:

/usr/local/lib/python3.11/site-packages/collective/elastic/ingest/ingest/section.py:15 content["section"] = path.split("/")[1] if len(path.split("/"))>1 else "__root__"

ksuess commented 1 year ago

Edge case fixed with https://github.com/collective/collective.elastic.ingest/pull/20