|  06-26-2022, 12:41 AM | #1 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
				
				calibre 6 beta: Full text searching
			 
			
			Hi all, calibre 6 is ready for Beta testing. The headline feature is Full text search, which means you can search the full text of all book files in your library from within calibre. Simply click the FT button at the left of the calibre search bar. calibre will first need to index the books in your library, a one time process, and then you can search for any word or combination of words in your entire library. Once you turn on indexing for a library, any future books added to it will be automatically indexed in the background. Note that currently full text searching is not possible through the content server interface, that will likely be implemented later. Testing and feedback on the new Full text search is most welcome. The other major changes are: 1) Moving to Qt 6 from Qt 5. This should have no user visible changes, except that there may be a few third party plugins that have not yet been ported to support Qt 6 2) Dropping support for 32-bit builds (because Qt 6 does not support them). In particular on Windows, the calibre installer will now automatically uninstall calibre 32bit and replace it with calibre 64bit. 3) Support for the ARM64 CPU architecture on Linux and Apple Silicon on macOS. 4) You can now specify different icon themes for light and dark mode The betas are fully compatible with calibre 5 you can run both on the same library with no ill effects. calibre 5 will simply ignore the full text search data calibre 6 generates. The only caveat is that if you add books using calibre 5 they will not be automatically indexed, so you might have to periodically re-index the library if you regularly use both 5 and 6 on the same library. You can download the betas from: https://download.calibre-ebook.com/betas/ For users running from source, use the qt6 branch with the beta builds, and master with regular calibre 5 builds. Enjoy and thank you for helping to iron out the bugs of which I am sure there will be several since FTS is a fairly large feature, code wise. | 
|   | 
|  06-26-2022, 01:10 AM | #2 | 
| Grand Sorcerer            Posts: 13,983 Karma: 243829945 Join Date: Jan 2014 Location: Estonia Device: Kobo Sage & Libra 2 | 
			
			Installed the beta and ran the indexer. Got this error immediately: Code: calibre, version 5.99.10
ERROR: Unhandled exception: <b>ZeroDivisionError</b>:float division by zero
calibre 5.99.10  embedded-python: True
Windows-10-10.0.19044 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeACSM (0, 0, 15) && DeDRM (7, 0, 0) && Amazon.com Multiple Countries (1, 0, 0) && Author Book Count (2, 2, 2) && Comments Cleaner (1, 6, 3) && Count Pages (1, 11, 2) && EpubCheck (0, 2, 4) && EpubMerge (2, 12, 0) && EpubSplit (3, 2, 0) && FanFicFare (4, 9, 0) && Favourites Menu (1, 1, 0) && Find Duplicates (1, 9, 4) && Generate Cover (2, 1, 0) && Job Spy (1, 0, 190) && Set KFX metadata (from KFX Output) (1, 58, 0) && KFX Output (1, 58, 0) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 9, 0) && Kobo Utilities (2, 15, 1) && Modify ePub (1, 7, 0) && MultiColumnSearch (1, 0, 87) && Quality Check (1, 12, 0) && Search The Internet (1, 8, 1) && View Manager (1, 8, 0)
Traceback (most recent call last):
  File "calibre\gui2\fts\scan.py", line 141, in update
  File "calibre\gui2\fts\scan.py", line 63, in time_left
ZeroDivisionError: float division by zero | 
|   | 
| Advert | |
|  | 
|  06-26-2022, 01:12 AM | #3 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			That's harmless and temporary, just ignore it.
		 | 
|   | 
|  06-26-2022, 01:26 AM | #4 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | |
|   | 
|  06-26-2022, 01:26 AM | #5 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			Curious - did you roll your own or use an o/s text search engine such as Lucene or Sphinx? And - a glitch in default main toolbar if no icons option is selected, viz: I clicked it, even though it's invisible it still works  BR | 
|   | 
| Advert | |
|  | 
|  06-26-2022, 01:32 AM | #6 | ||
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | Quote: 
 Quote: 
 Last edited by kovidgoyal; 06-26-2022 at 01:59 AM. | ||
|   | 
|  06-26-2022, 01:58 AM | #7 | |
| Grand Sorcerer            Posts: 13,983 Karma: 243829945 Join Date: Jan 2014 Location: Estonia Device: Kobo Sage & Libra 2 | Quote: The indexer has finished now. I noticed that the search results show only the first instance of the word/phrase for every book it was found in, not all results in a book. I guess this is intentional? | |
|   | 
|  06-26-2022, 02:02 AM | #8 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Yes, the idea is that you use this to find the book, quickly, searching through the books content in detail is best done inside the book in the calibre viewer or similar, where you can perform more sophisticated searches.
		 | 
|   | 
|  06-26-2022, 02:04 AM | #9 | |
| Diligent dilettante            Posts: 3,662 Karma: 52758936 Join Date: Sep 2019 Location: in my mind Device: Kobo Sage; Kobo Libra Colour | Quote: 
   | |
|   | 
|  06-26-2022, 02:06 AM | #10 | 
| Grand Sorcerer            Posts: 13,983 Karma: 243829945 Join Date: Jan 2014 Location: Estonia Device: Kobo Sage & Libra 2 | |
|   | 
|  06-26-2022, 02:14 AM | #11 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Added a note to the documentation to clarify that it finds only one instance per book: https://github.com/kovidgoyal/calibr...4476bb0d2b8bba
		 | 
|   | 
|  06-26-2022, 02:30 AM | #12 | 
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | 
			
			Windows 10 If the main calibre window is hidden or minimised, and I click the "Select" button in the individual book panel. or the "Jump to this book in the library" in the results list the main calibre window is not bought to the front. My preference would be that it does come to the front. But, "Mark" should leave the main window where it is. Mark multiple would be nice. I've been wondering what you were up to. I tossed it a 3,300 book library, its indexing 6,900 format files - which formats does it index/not index? As always very impressive I only discovered the no-icon toolbar option last week   BR | 
|   | 
|  06-26-2022, 02:42 AM | #13 | |||
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | Quote: 
 Quote: 
 Quote: 
 Last edited by kovidgoyal; 06-26-2022 at 03:29 AM. | |||
|   | 
|  06-26-2022, 03:45 AM | #14 | 
| Interested in the matter            Posts: 421 Karma: 426094 Join Date: Dec 2011 Location: Spain, south coast Device: Pocketbook InkPad 3 | 
			
			I was looking forward to you implementing this feature. I'm going to try it immediately. Thank you very, very much Kovid.   | 
|   | 
|  06-26-2022, 03:46 AM | #15 | |
| null operator (he/him)            Posts: 22,010 Karma: 30277294 Join Date: Mar 2012 Location: Sydney Australia Device: none | Quote: 
 If I click on an EPUB file link in the book results panel the calibre viewer pops up in front - as I would expect. But… if I click on a DOCX file link, and I have DOCX unchecked in the "Use internal viewer for:" list, the calibre viewer also pops up, IMO it should pop the default handler for DOCX. Yes I spotted that after I posted, maybe Mark All and Select All could be added to the results context menu. BR | |
|   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Searching for Text in Footnotes | aherinandrianina | Calibre | 1 | 12-05-2018 04:08 AM | 
| Troubles searching text in files | Maxwell61 | Library Management | 9 | 09-18-2018 06:13 PM | 
| searching google from e-reader text | garrry | Related Tools | 2 | 06-15-2013 04:39 AM | 
| searching a document based on highlighted text | KasPaz | Kindle Developer's Corner | 0 | 02-06-2012 10:37 PM | 
| Searching text on 300 and 505 | Thrasher | Sony Reader | 6 | 04-28-2010 03:41 AM |