Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a Samba-based fileserver with lots of gigs of data on it, mostly Word, Excel, OpenOffice and PDF documents.

I've set up a simple web based search interface (Apache, PHP, mlocate) that just goes on filepaths + mtime. It works, for that, but it would be great to have all the documents indexed by Apache Solr, as by all accounts this is blazingly fast and can cope with all these different document types.

But it's a fileserver, not a website, so I'd need something to crawl all files, and keep crawling and re-indexing the updated ones; people aren't "POST"ing documents, they're just pressing Save.

Is there a project out there that does this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Check out inotify. It will notify you about file system events instantaneously.

share|improve this answer
    
Useful, thanks. As the case is so general ("I want people to be able to search for files on the fileserver") do you know of any projects that do this? I want to avoid having to write my own stuff if there's a good project already written. –  artfulrobot Aug 29 '12 at 10:29
    
Not that I know of. If I had to do it though, I would write a daemon using pyinotify that would store the info in a mysql database, which can then be searched by the webapp. –  Timothy Makobu Aug 29 '12 at 17:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.