Antonio,
Avoiding the possibility of errors in my custom code, I used FS and Xowiki packages to evaluate searching macanism. That way, we also exclude potential errors in the service-contract definition.
I've created the FS-file object (i.e. a PDF file) Nice reading btw! Voltaire's master piece.
https://dashboard.qonteo.com/file-storage/view/E%cc%81pi%cc%82tre_de_la_mode%cc%81ration_en_%5b...%5dVoltaire_(1694-1778)_bpt6k6104957k.pdf
... and I've also created a Xowiki Page
https://dashboard.qonteo.com/xowiki/oacsforumthread
Then, I've tried to search for both items, but no results were returned.
https://dashboard.qonteo.com/search/search?q=forum&search_package_id=442093&__csrf_token=C9C66423DAD97C33AF9A28377EECC7AC9CE1E212
Thus, neither a file nor a xowiki page is searchable.
i. I did wait for a couple of hours, and searched again, to make sure there's was engough time to reindex procedures.
ii. I did reboot NS.
Furthemore, there is no need to create extra step to make search observer aware, beucase new object types are "subtypes" of content revision.
OACS kernel is 5.9.2d2
At first my intuition were pointing to Tsearch2 Driver or PostgreSQL level. However, everything works just fine in the other instance, which is using the same RDBMS, same server even