Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Mounted Drive Search works for Admin Only #22

Closed
bboule opened this issue Mar 5, 2014 · 7 comments
Closed

Mounted Drive Search works for Admin Only #22

bboule opened this issue Mar 5, 2014 · 7 comments
Labels

Comments

@bboule
Copy link

bboule commented Mar 5, 2014

OC 6.0.2
CentOS 6 64 Bit
Apache
MySQL

When mounting a drive that has existing data as the administrator, the contents of the mount are indexed and are searchable by the admin (you can see the index built in the lucene_index folder). However, when the mount is shared i.e. in the mount external storage section of the admin page you add users, the data on the mount point is not indexed for these users. So, for example if I mount an SMB to the OC host, then create a loca storgae mount and add Bob and Bill the content of that mount is indexed for the Admin, and when I login as Bob and or Bill I can see the files however the contents is not indexed and thus I am not able to search for content as I can as the Admin.

@MTRichards this is an issue for *** as this is the use case they are looking for...

Let me know what you think?

Bob

@MTRichards
Copy link

@karlitschek @butonic

@karlitschek karlitschek added the bug label Mar 5, 2014
@butonic
Copy link
Contributor

butonic commented Mar 6, 2014

@bboule @MTRichards search_lucene currently does not support searching inside shared files. Note that with search lucene enabled users will not even be able to search shared files by name because search_lucene currently replaces the default filename based search (which does support searching shared files by their name).

@bboule If you disable search_lucene they will at least be able to search shared files by name. Does that help?

@karlitschek I don't find enought time to work on search_lucene. #1 has some feedback on the latest updates, but there is still a ton left to do. For starters, a concept on how to make search_lucene work with sharing. I'd like to update a document in the search_lucene index without having to reindex the file. Then I could add the users that are allowed to see the search result to the document ... the problem is I need time to test that.

@butonic
Copy link
Contributor

butonic commented Mar 6, 2014

closing as duplicate of #10

If the user cannot find files by name open an issue in core.

@butonic butonic closed this as completed Mar 6, 2014
@bboule
Copy link
Author

bboule commented Mar 6, 2014

Guys... so just to be clear, if I mount a CIFS mount, and rather than share it, I simply give other users access to it via the admin screen (select All Users), is this the same as sharing from a search perspective? My guess is yes... I just wanted to be clear on what I was trying to do. They are specifically trying to do this so that a user could search inside these documents that are stored in a common directory. I wonder, if the user mounts the storage themselves (or we script the mount file so it looks like they are) would they then own the mount and be able to search? Just thinking of creatives ways to make this work?? Thoughts??

@butonic
Copy link
Contributor

butonic commented Mar 6, 2014

If the mounts are done outside of owncloud directly in the filesystem for every user then search_lucene should index the content for every user. It must not be mounted with files_external because search_lucene will only index local files (indexing files on remote storage is considered too expensive).

@bboule
Copy link
Author

bboule commented Mar 6, 2014

Got it!!! this worked as advertised, I am talking with Matt about the following short term solution:

Mount the external directory on the OC server

Create a cron job that will look for the existence of a symlink in each users files directory, linking it to the mount of the extern FS

This seemed to work in my testing (when I symlinked the external mount into the user default data storage the indexing worked as advertised).

@butonic
Copy link
Contributor

butonic commented Mar 6, 2014

Yep, symlinking should work fine. Keep in mind though that lucene will trigger the index job for all users, reindexing each file as often as users are in owncloud. That might create some traffic. It will for sure create a ton of index jobs. PR #1 has a lot of improvements but still needs testing hint hint ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants