-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ePub text search #47
Comments
Please anyone at least tell me, Is "text search" possible or not?? |
For the immediate future search isn't possible, though we are planning to develop a backend to enable it. It will likely be separate from the ePub.js code, as it will require a python. |
I wonder if you could build the search indexes using lunr.js. It already supports tokenization, stemming, and stop words. I haven't used it for anything serious, so I don't know about performance, and building the indexes on the client is not optimal, so just a thought. |
@AJRenold - could you update this thread with the search progress and close? |
We're developing a light-weight indexing and search tool which allows an entire epub file to be searched via a search API. (https://github.com/futurepress/epubjs-search) The reader plugin search.js (https://github.com/futurepress/epub.js/blob/master/reader/plugins/search.js#L4) points to the API endpoint where you must be running a search server with the index of the same book. This model only supports indexing and searching a single book. I'll update the epubjs-search readme today with better instructions on how to use the library. |
I just updated the epubjs-search README.md with instructions that should get you up and running a simple Python search API. We are actively considering other options to create a search feature that runs on the client side only. |
The search engine needs to have a sense of how a epub is put together or it can't generate the Epub CFI and cfi's are what allow the reader to jump to a location in the book. To briefly describe what the search engine does:
|
Is lunr.js good for this issue? |
How to implement "ePub text search" feature?
The text was updated successfully, but these errors were encountered: