Search indexing fails to parse

54 views
Skip to first unread message

Toni Schoenbuchner

unread,
Jun 10, 2021, 6:16:26 AM6/10/21
to AtoM Users
Dear atom users and devs,

I'm trying to populate my search php /atom/src/symfony search:populate but failing with

 Error in one or more bulk request actions:                                
  index: /atom/QubitRepository/448 caused failed to parse [i18n.languages]

Can one help what could go wrong and how to get further log output to find the problem?

thanks a lot,
Toni

Toni Schoenbuchner

unread,
Jun 10, 2021, 7:09:06 AM6/10/21
to AtoM Users

Okay so I've found what is going wrong. I've followed this conversation to delete a translation (https://groups.google.com/g/ica-atom-users/c/55GENtGjp-Q/m/51uMq65MBQAJ) while this is working nicely for archival descriptions it does not if the slug refers to an archive. My guess is that some foreign key still links to the deleted Spanish entry and that's why the indexing is failing.

So what I did is: dump all data and "grepped" for culture "es" which can only be found in "property_i18n" . Does this makes sense to clear those DELETE * from property_i18n pin WHERE culture  = "es"
What is property_i18n used for?

(By the way, this is all a test VM. So no danger to break anything ;)

Toni Schoenbuchner

unread,
Jun 10, 2021, 7:36:05 AM6/10/21
to AtoM Users
Unfortuantely this did not make it working . So elasticsearch is working on informationObjects when failing to insert. Thankful for any hint what else I can try.

Toni Schoenbuchner

unread,
Jun 11, 2021, 8:32:24 AM6/11/21
to AtoM Users
For the record. This is what finally fixed it for me:

DELETE a FROM repository_i18n a
JOIN repository ON repository.id = a.id
WHERE a.culture = "es";

So if I could put something on a wish list than it is that users can delete translations without deleting the whole entry asking the tech stuff dancing with the database :))


Dan Gillean

unread,
Jun 11, 2021, 4:21:06 PM6/11/21
to ICA-AtoM Users
Hi Toni, 

Sorry for the delay in following up, and for the issues you've encountered. Thank you for updating the thread and letting us know the solution that you found! 

I agree that in the future, as part of improvements to the internationalization support in AtoM, there should be a way via the user interface to delete translations without deleting the original record. 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/edfd6b29-cdc9-42a0-814b-247b196ec47fn%40googlegroups.com.

Toni Schoenbuchner

unread,
Jun 14, 2021, 3:57:34 AM6/14/21
to AtoM Users
Hi Dan,

no worries at all for any delay ;) You helped me beyond measure by sharing your knowledge in many threads.

Best,
Toni

Reply all
Reply to author
Forward
0 new messages