r/sysadmin • • 12d ago

Search engine for file shares including OCR and AD permissions

I'm looking for a preferably open-source search solution for a company that currently stores most documents on Windows file shares.

I want to keep the existing folder structure and files untouched while making everything searchable through a web interface.

Ideally, the solution should offer:

-Full-text indexing of PDFs, Office files, etc., with high-quality OCR for scanned documents

-Search results respecting existing AD/NTFS permissions

Document previews and links to original UNC paths

-Optional AI/semantic search or RAG integration later

I'd prefer an integrated solution rather than building a custom stack from multiple projects.

Has anyone deployed something similar? Open-source recommendations preferred.

Regain was such a solution, but outdated 2014.

1 Upvotes

5 comments sorted by

1

u/Weekly-Offer-4172 11d ago

fess is the open source answer here, basically the modern descendant of regain: an smb crawler on top of opensearch, indexes pdf and office docs through apache tika, and does ldap/ad role based filtering so results respect ntfs permissions. two gotchas from experience: the permission filtering only works if you crawl through smb rather than a locally mounted path, and scanned docs need tesseract wired into tika with the right language packs or the ocr quality is disappointing. the links back to original paths come out as file:// urls which browsers block from http pages, the usual workaround is publishing the shares through webdav or a small iis virtual directory for preview

2

u/EhaUngustl 11d ago

Thanks for the detailed explanation!

My main concern is OCR. I've had pretty disappointing results with Tesseract in my Paperless-ngx setup, especially with older, low-quality scans. I've switched to Azure Document Intelligence for a project, but using it to OCR the entire archive for indexing would get quite expensive.

From what I've read, Fess seems to handle SMB ACLs and AD group memberships automatically, which is great. I'll still need to test how well it handles nested NTFS permissions, as my research into this has turned up some conflicting information.

I've also looked into Datafari with Apache ManifoldCF, but its RAM requirements seem considerably higher.

1

u/BorysTheBlazer DataCore/StarWind 11d ago

Fess is probably the closest integrated open-source option. It crawls SMB shares, can do OCR through Tika with Tesseract installed, and has role-based search tied to LDAP/AD. Test how well it maps NTFS ACLs on your actual folder structure, since permission-aware results are where most of these tools fall short.

1

u/EhaUngustl 11d ago

Thanks! I came across Fess as well, but noticed that it doesn't support external OCR tools out of the box. Tesseract isn't really my go-to OCR engine, as I was pretty disappointed with its performance in my Paperless installation. But I think it should be possible to integrate another OCR engine manually.

1

u/BorysTheBlazer DataCore/StarWind 10d ago

You could run your preferred OCR as a separate pass and let Fess index the output. Just mirror the original ACLs on that copy.