janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.01k stars 1.28k forks source link

Full text search #2490

Open fivestones opened 1 year ago

fivestones commented 1 year ago

I know that in the past when requests were given for full text search you said you had decided not to move in that direction. But given the new version of Calibre 6, with its full-text search, I wonder if things might also change for calibre-web.

Is your feature request related to a problem? Please describe. I am unable to find books based on searches for things in the text itself. Right now I can only search the metadata, which is less useful than if I could search both the metadata and the full text.

Describe the solution you'd like When searching the library, there should be an option to search the full text.

Describe alternatives you've considered Using Calibre itself, but that doesn't give us the beautiful UI of calibre-web nor the ability to use it online through any browser

Additional context It would be good to still be able to limit searches with metadata (e.g., find any book with the words "I will protect even those I hate so long as it is right" but only return results from books tagged "fantasy fiction")

Thanks!

webysther commented 1 year ago

Same as #2519

fivestones commented 8 months ago

Any chance this might be considered?

j-faure commented 5 months ago

I'm very interested in this as well, I can help work on the feature.

webysther commented 4 months ago

I think the maintainer is keen to accept the PR if use calibre-cli to access the full text from calibre, I think another way will not get accepted.

https://manual.calibre-ebook.com/db_api.html#calibre.db.cache.Cache.search

Need to test if search is working like search_notes to support fts_engine_query

webysther commented 4 months ago

There are two approaches to this issue, one quick and the other more thorough, both of which complement each other. Initially, we can implement a checkbox in the advanced search to scan the full text index and return books sorted by token count, limiting it to 100 books. Another more intricate approach is to display (which necessitates extensive UX modification) a portion of the text as it functions within Calibre in the result.

image

Parbler commented 1 month ago

Any update on this issue?

theorosendorf commented 1 week ago

I'm interested in this as well.