Right now, if you create a share of /mnt/cat_videos on two different servers, you will end up having two different indexes for the same folder, one per-share.
I propose that indexes be keyed by a short hash of their path on disk + the index settings. That way, if two shares with the same indeex settings point to /mnt/cat_videos, the directory will only be indexed once. But if there are different settings (like symlinks being followed on one but not the other), they will get their own indexes to ensure that file privacy is preserved.
I was also thinking of just keying indexes by their files and then using a prefix search, but I don't think that could be used if we have different shares with different index settings.
Right now, if you create a share of
/mnt/cat_videoson two different servers, you will end up having two different indexes for the same folder, one per-share.I propose that indexes be keyed by a short hash of their path on disk + the index settings. That way, if two shares with the same indeex settings point to
/mnt/cat_videos, the directory will only be indexed once. But if there are different settings (like symlinks being followed on one but not the other), they will get their own indexes to ensure that file privacy is preserved.I was also thinking of just keying indexes by their files and then using a prefix search, but I don't think that could be used if we have different shares with different index settings.