![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
[GUI Plugin] Power (Full-text) Search
Calibre Power Search Plugin
=========================== Version 2.2.0, released on 27 March 2022. Created by Michael Apozyan Platform: Linux, Windows, macOS Calibre versions: 3.x, 4.x, 5.x, 6.x Overview This plugin adds full-text search functionality to your electronic library. Default shortcut key for Power Search dialog is Ctrl+Shift+S. When you run Power Search, it will extract text from all your books on the fly and load all this text in a local full-text search engine. Plugin will never modify any books and records in Calibre library. As a search backend, we are using ElasticSearch. Once the search index is created and is up-to-date, Power Search will query search engine and display list of books where certain search keywords are found. For large libraries, running search for the first time might take a while. Subsequent searches will normally take less than a second. Usage We tried to make Power Search easy to use. And yet it allows you running complex queries too.
Requirements
Configuring
Version History: Spoiler:
For bug reports and feature requests please contact mapozyan (at) yahoo.com The project is hosted on GitHub at https://github.com/mapozyan/caps Authors
Thanks to
Last edited by mapozyan; 07-11-2023 at 06:53 PM. Reason: Add Calibre 6 support |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
--placeholder for test versions--
Last edited by mapozyan; 07-15-2022 at 12:24 PM. Reason: Add version 2.2.0 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,297
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I can't wait for the Windows version.
![]() |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Version 1.1.0 released. Works on Windows!
Last edited by mapozyan; 07-31-2020 at 12:10 PM. Reason: Removed version 1.1.0 |
![]() |
![]() |
![]() |
#5 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,297
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Possible bug in Windows, although I'm not sure if there's anything to be done: when doing a first search, all the ebook-convert console windows pop up in the foreground and steal focus, making the computer pretty much unusable until the search is either complete or cancelled.
Seeing as the initial indexing takes a while (I ended up cancelling when it was nearing an hour and a half, and the bar was only 1/5 full!) it's...a bit of a problem. Last edited by ownedbycats; 07-26-2020 at 06:21 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Hmm, I'll look into it. Thanks for feedback!
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,968
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@mapozyan You need to set creationflags to CREATE_NO_WINDOW on windows when calling Popen()
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,968
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sorry typoe, you need DETACHED_PROCESS not CREATE_NO_WINDOW
|
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Fixed issue in version 1.1.1. Please find in attachment.
Thanks for hint, @kovidgoyal! Just a quick observation on how much time the initial index creation might take. Processing my own library with ~3200 books and total size ~23GB took me around 5 hours. My computer is a decent i7 laptop with 4 cores. Last edited by mapozyan; 07-31-2020 at 12:11 PM. Reason: Removed version 1.1.1 |
![]() |
![]() |
![]() |
#10 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,297
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I installed the new version and grabbed pdftotext. This time my computer is usable while the initial search runs in the background. pdftotext also speeds up the process quite a bit.
Another odd quirk: I have a six-core processor. The readme file indicated that the default number of parallel processes should be set to the number of CPUs, but in mine it was default set to 12. It's possible that was another reason it was running so slow before. It may be some oddity stemming from my particular CPU (AMD Ryzen 2600) though. Last edited by ownedbycats; 07-27-2020 at 08:56 AM. |
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Some fancy technologies like Hyper-threading might double the real number of cores.
However, setting 'number of parallel processes' option to a higher value should not be disastrous. Your operating system is smart enough to deal with it. ![]() |
![]() |
![]() |
![]() |
#12 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,297
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It's all indexed now!
Another bug: I put a phrase in "quotation marks" to test searching exact phrases and got an error about an unexpected character. Error log: Spoiler:
|
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Thanks for feedback @ownedbycats!
I did not try searching for exact phrase yet, need to figure out how to do it in elasticsearch. Stay tuned for updates! |
![]() |
![]() |
![]() |
#14 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,297
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Searching for a compound word that uses a hyphen (e.g. up-to-date) also returns results for the separate words.
Last edited by ownedbycats; 07-27-2020 at 02:34 PM. |
![]() |
![]() |
![]() |
#15 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,383
Karma: 165170832
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
And my test is still running after 8 hours (~11,500 books). Edited to copy the edit comment to the body of the message: Edit: Just finished. at 09:24. About 2 minutes after the message was written. Last edited by DNSB; 07-27-2020 at 12:50 PM. Reason: Edit: Moved just finished message and time into the body of the message |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 434 | 09-30-2024 03:04 AM |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Recoll Full Text Search | Satas | Plugins | 16 | 08-05-2016 03:54 AM |
[GUI Plugin] Full Text Search (SOLR) | peterpisljar | Plugins | 2 | 08-09-2015 08:16 AM |
Make a simple Plugin for Full Text Search using Recoll | Satas | Development | 9 | 07-20-2013 04:15 PM |