The best i've found is recoll: https://www.lesbonscomptes.com/recoll/
But search quality isn't good.
Need to clarify re ebook format though - if it's DRMed then any third-party tool is going to be out of luck.
I intended to try it out but never did - might give it a look again soon.
The best i've found is recoll: https://www.lesbonscomptes.com/recoll/
But search quality isn't good.