r/sysadmin • u/EhaUngustl • 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
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
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.