When reindexing with elasticsearch, the record is passed for authorities but not for biblios. This means that authorities are indexed as they are, while biblios are pushed to a background job. These processes should be consistent.
Created attachment 144214 [details] [review] Bug 32339: Provide record when cataloguing biblios To test: 1. Ensure you have Elasticsearch enabled and configured 2. Add a new record and confirm you can search for it straight after saving, before and after applying the patch Sponsored-by: Auckland University of Technology
I am not sure this is the right fix, as we are moving to background jobs everywhere, maybe the indexing for the authorities should be changed instead? Is there a visible difference here? My impression was that usually the single jobs get handled immediately.
Also agree it might not be the best solution, I guess it might just be a workaround. The real problem for us is background jobs, they keep getting stuck at New and I found it was the queuing of the background job that meant records weren't getting indexed. We can cancel this if the ideal is that $record is never passed like it is for authorities.
Sounds more like "in discussion" then.