For TL;DR types I immediately present the EPUB text filter to download. It delivers plain text previews and fast indexed search in EPUB documents, with xplorer², windows explorer and all shell compatible file managers.
Minimum requirements: windows XP or later (32 or 64 bit)
EPUB IFilter misadventure in more detail
I did a search for an EPUB IFilter component to download, but oddly there was none to be found for such an easy format (EPUB is just a disguised zip archive). As I was contemplating to write my own IFilter (a shell extension DLL), I came across a forum post claiming that Sumatra PDF (one of the recommended lightweight PDF viewers) already had such a component but for some unknown reason they wouldn't distribute it.
The good news is that sumatraPDF is open source, and anyone can grab the C++ source code from Git and play with it. Apparently all that was required was defining a preprocessor symbol BUILD_EPUB_IFILTER and the EPUB code would be included in the IFilter DLL.
It also includes a LaTex filter but last time I used .TEX was 25 years ago in college
An even bigger obstacle proved to be Git, the source code repository and collaboration fashion du jour. SumatraPDF has some external dependencies so getting the ZIP from github wasn't enough. I had to install git for windows, open a git account, follow the initial setup instructions, all to no avail. Using the windows command line interface git-cmd.exe would just fail:
git clone --recursive firstname.lastname@example.org:sumatrapdfreader/sumatrapdf.git email@example.com: Permission denied (publickey). fatal: Could not read from remote repository.
After wasting time trying to understand what that error meant, I ended up downloading git desktop, which delivered an old git from such undeserved command line misery, and I got all the sumatra source code cum dependencies in one go.
I built both 32 and 64 bit IFilter dlls, and wrapped them in an installer for the benefit of ebook readers at large who haven't read anything about REGSVR32 (manual registration would also ruin any PDF filters you had in place, which you probably don't want). The download location is further up.
The main credit (and any faults) with the EPUB plugin lie with SumatraPDF developers. I merely repackaged their work.
What about other ebook formats?
Arguably EPUB isn't the most popular ebook format. With amazon Kindle I mostly read MOBI and AZW ebooks. How do you preview and search in these? The bad news is that many of these books are encrypted and linked to the kindle device, so there's not much chance of a generic text preview. Still the xplorer² plugins page lists some shell extensions that provide thumbnails and attributes like book title and author (see the MobiHandler plugin). The plugin page also lists text filters for Sony/Canon ebooks (LRF and FB2) and DjVu ebooks — but personally I don't have any books in these formats.