It seems like it is already able to identify directories containing a node_modules directory:
$ /usr/lib/localsearch-3 --eligible /home/tvk/Documents/test
Data object “/home/tvk/Documents/test” currently exists
File is NOT eligible to be indexed (not an indexed folder)
I get the same result for all directories that I tested that include a node_modules dir. And It doesn’t matter if I have set ‘node_modules’ in the mentioned dconf option or not.
So I guess the reason is a different one after all.
I read through the man page and then ran the following to debug the issue:
$ systemctl --user mask localsearch-3.service
$ systemctl --user stop localsearch-3.service
$ export G_MESSAGES_DEBUG=all
$ export TRACKER_DEBUG=config,miner-fs-events,monitors,statistics,status
$ /usr/lib/localsearch-3
Tracker-Message: 17:16:23.418: Set scheduler policy to SCHED_IDLE
Tracker-Message: 17:16:23.418: Setting priority nice level to 19
(localsearch-3:212665): GLib-GIO-DEBUG: 17:16:23.441: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(localsearch-3:212665): GLib-GIO-DEBUG: 17:16:23.442: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
Tracker-Message: 17:16:23.457: Mount monitors set up for to watch for added, removed and pre-unmounts...
(localsearch-3:212665): Tracker-DEBUG: 17:16:23.458: No mounts found to iterate
(localsearch-3:212665): GLib-GIO-DEBUG: 17:16:23.460: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(localsearch-3:212665): dconf-DEBUG: 17:16:23.460: watch_fast: "/org/freedesktop/tracker/extract/" (establishing: 0, active: 0)
(localsearch-3:212665): GLib-GIO-DEBUG: 17:16:23.461: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(localsearch-3:212665): dconf-DEBUG: 17:16:23.462: watch_established: "/org/freedesktop/tracker/extract/" (establishing: 1)
(localsearch-3:212665): dconf-DEBUG: 17:16:23.463: watch_fast: "/org/freedesktop/tracker/miner/files/" (establishing: 0, active: 0)
(localsearch-3:212665): dconf-DEBUG: 17:16:23.463: watch_established: "/org/freedesktop/tracker/miner/files/" (establishing: 1)
Tracker-Message: 17:16:23.464: General options:
Tracker-Message: 17:16:23.464: Initial Sleep ........................ 15
Tracker-Message: 17:16:23.464: Indexer options:
Tracker-Message: 17:16:23.464: Throttle level ....................... 0
Tracker-Message: 17:16:23.464: Indexing while on battery ............ yes (first time only = yes)
Tracker-Message: 17:16:23.464: Low disk space limit ................. Disabled
(localsearch-3:212665): Tracker-DEBUG: 17:16:23.464: tracker-miner-fs-3 running as org.freedesktop.LocalSearch3
(localsearch-3:212665): dconf-DEBUG: 17:16:23.464: watch_fast: "/org/freedesktop/tracker/fts/" (establishing: 0, active: 0)
(localsearch-3:212665): dconf-DEBUG: 17:16:23.464: watch_established: "/org/freedesktop/tracker/fts/" (establishing: 1)
(localsearch-3:212665): Tracker-DEBUG: 17:16:28.944: Current and DB locales match: 'en_US.UTF-8'
(localsearch-3:212665): Tracker-CRITICAL **: 17:16:30.719: Could not create store: ambiguous column name: ROWID
Then I tried to remove the filesystem indexer db as well as the RSS indexer db which can be done quite easily like this:
$ localsearch reset -sr
(tracker reset:214015): GLib-GIO-DEBUG: 17:23:49.771: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
Found 0 PIDs…
(tracker reset:214015): GLib-GIO-DEBUG: 17:23:49.773: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(tracker reset:214015): GLib-GIO-DEBUG: 17:23:49.775: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
And unmasked the service again:
$ systemctl --user unmask localsearch-3.service
Now it seems to work:
$ journalctl --user --follow -u localsearch-3.service
Dez 09 17:23:56 tvk-xps159575 systemd[1715]: Starting Tracker file system data miner...
Dez 09 17:23:56 tvk-xps159575 systemd[1715]: Started Tracker file system data miner.
Now it idles at 0.0% and I haven’t seen it spike yet.