Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2024, 10:24 AM   #1
Yarrow
Enthusiast
Yarrow began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
Full Text Service (FTS) - request

Really love FTS BUT would welcome FTS returns to show the number of citations of the search term per book as this would show most relevant books to view rather than current position of just showing one. Or alternatively an option to choose 1, 2, 3, 4, 5 returns per book. Is this possible?
Yarrow is offline   Reply With Quote
Old 02-07-2024, 10:32 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,523
Karma: 24495784
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, sadly the FTS engine only tracks a single match per document (book format). You can open the book in the viewer and see th enumber of matches.
kovidgoyal is online now   Reply With Quote
Old 02-07-2024, 11:18 AM   #3
Yarrow
Enthusiast
Yarrow began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
Thanks Kovid. I thought that if it was possible to have more than one match shown or the number of matches per book it would help deciding which books to go to to search further. I have a large library and sometimes get 30+ books returned and it's hard to choose which ones to view. Not Grumbling as a total fan of Calibre and the FTS option. Really grateful for your work over many years on Calibre.
Yarrow is offline   Reply With Quote
Old 02-07-2024, 11:02 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,523
Karma: 24495784
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah, I can see your use case, however it's simply not supported by the underlying engine. It could theoretically be implemented by writing a custom SQLITE FTS5 extension function, but that's rather a lot of work to implement. Maybe someday when I have the time.
kovidgoyal is online now   Reply With Quote
Old 02-08-2024, 02:20 AM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,530
Karma: 64500175
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I would find this useful as well. (I think I might've actually requested it once.)
ownedbycats is online now   Reply With Quote
Old 02-08-2024, 12:03 PM   #6
Yarrow
Enthusiast
Yarrow began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
Quote:
Originally Posted by kovidgoyal View Post
Yeah, I can see your use case, however it's simply not supported by the underlying engine. It could theoretically be implemented by writing a custom SQLITE FTS5 extension function, but that's rather a lot of work to implement. Maybe someday when I have the time.
Many thanks for thinking about doing this. I know how busy you must be.

By the way, love Mumbai. My son was working there for a few years and we went to see him a few times. He lived in Bandra West.
Yarrow is offline   Reply With Quote
Old 02-08-2024, 12:06 PM   #7
Yarrow
Enthusiast
Yarrow began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
Quote:
Originally Posted by kovidgoyal View Post
Yeah, I can see your use case, however it's simply not supported by the underlying engine. It could theoretically be implemented by writing a custom SQLITE FTS5 extension function, but that's rather a lot of work to implement. Maybe someday when I have the time.
Yarrow is offline   Reply With Quote
Old 02-08-2024, 12:07 PM   #8
Yarrow
Enthusiast
Yarrow began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
:
Quote:
Originally Posted by ownedbycats View Post
I would find this useful as well. (I think I might've actually requested it once.)
Yarrow is offline   Reply With Quote
Old 02-09-2024, 02:34 PM   #9
Yarrow
Enthusiast
Yarrow began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
An alternative approach would be to use an 'AI engine' to interrogate a calibre library. Just noticed that the IOS app Evernote is offering users the option to search with AI - whatever that means in this context.
Yarrow is offline   Reply With Quote
Old 02-09-2024, 03:18 PM   #10
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,341
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Yarrow View Post
An alternative approach would be to use an 'AI engine' to interrogate a calibre library. Just noticed that the IOS app Evernote is offering users the option to search with AI - whatever that means in this context.
Daft approach.
Quoth is offline   Reply With Quote
Old 02-09-2024, 03:40 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,470
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Yarrow View Post
An alternative approach would be to use an 'AI engine' to interrogate a calibre library. Just noticed that the IOS app Evernote is offering users the option to search with AI - whatever that means in this context.
If you have the money to spare...
DNSB is offline   Reply With Quote
Old 02-09-2024, 05:13 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,992
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Yarrow View Post
An alternative approach would be to use an 'AI engine' to interrogate a calibre library. Just noticed that the IOS app Evernote is offering users the option to search with AI - whatever that means in this context.
Maybe this would be of interest, it's on my list of things to look at ==>> Open Semantic Search

For the past decade or so I've used Windows Search and X1 to content search calibre libraries. And, since its release in 2016, in conjunction with the Drop Search Results calibre plugin.

BR

Last edited by BetterRed; 02-09-2024 at 07:59 PM.
BetterRed is offline   Reply With Quote
Old 07-04-2024, 01:24 AM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,523
Karma: 24495784
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh and I should clarify the results as shown in calibre are already ranked by the bm25 algorithm so when you get multiple results for a query you should start with the topmost one. Generally it will be more relevant than subsequent ones. What you are asking for is basically using a simpler relevance ranking by number of matches only rather than bm25. I looked into this and I dont really see how that would be helpful. That said, its not out of the question to provide such an alternate ranking, but its not worth the effort to me, patches welcome.

Here is a technical writeup on how bm25 works:
https://www.elastic.co/blog/practica...-its-variables
kovidgoyal is online now   Reply With Quote
Reply

Tags
fts, search


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTS for UTF-8 Text Formats in Non-TXT File Extensions DaltonST Development 7 03-12-2023 08:40 PM
Full-text search not really full-text secasa Library Management 5 10-01-2022 11:11 PM
[Feature Request] Manage "Full Text" search shuvashish76 Library Management 7 07-17-2022 12:54 AM
Feature request: full text search Laisvunas EPUBReader 3 04-03-2011 12:47 PM


All times are GMT -4. The time now is 11:13 PM.


MobileRead.com is a privately owned, operated and funded community.