Files uploaded to a share are not indexed

Nextcloud version (eg, 20.0.5): 23.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.53 (Debian)
PHP version (eg, 7.4): 7.4.28

The issue you are facing:

When uploading a file to a user share, the file is not indexed using elastic search. Whereas when I upload the file to the folder that I shared using the Files app indexing works.

Is this the first time you’ve seen this error? (Y/N):
Steps to replicate it:

  1. Share a folder
  2. Upload a file A.txt with text AAA to this share
  3. search for text AAA. Nextcloud search returns No results for AAA
  4. Upload a file B.txt with text BBB with the Files app to the same folder
  5. search for BBB. Nextcloud returns B.txt

I assume it’s about the fulltextsearch_elasticsearch app.

If you think that this is not a configuration problem but a bug, it is worth creating an issue on GitHub in the appropriate place. GitHub Issue Tracker for fulltextsearch_elasticsearch: Issues · nextcloud/fulltextsearch_elasticsearch · GitHub

Thanks. Yes it about fulltextsearch_elasticsearch app. I have created a github issue: Files uploaded to a share are not indexed · Issue #188 · nextcloud/fulltextsearch_elasticsearch · GitHub