![]() |
#1 |
Enthusiast
![]() 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?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,256
Karma: 23661992
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.
|
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() 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.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,256
Karma: 23661992
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.
|
![]() |
![]() |
![]() |
#5 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,164
Karma: 62872439
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.)
|
![]() |
![]() |
![]() |
#6 | |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
|
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Aug 2007
Location: Lancashire, UK
Device: Sony PRS500& PRS505; iPad; and Kindle
|
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() 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.
|
![]() |
![]() |
![]() |
#10 |
the rook, bossing Never.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,230
Karma: 89531599
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
![]() |
![]() |
![]() |
#11 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,796
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,828
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
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 06:59 PM. |
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,256
Karma: 23661992
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 |
![]() |
![]() |
![]() |
Tags |
fts, search |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
FTS for UTF-8 Text Formats in Non-TXT File Extensions | DaltonST | Development | 7 | 03-12-2023 07:40 PM |
Full-text search not really full-text | secasa | Library Management | 5 | 10-01-2022 10:11 PM |
[Feature Request] Manage "Full Text" search | shuvashish76 | Library Management | 7 | 07-16-2022 11:54 PM |
Feature request: full text search | Laisvunas | EPUBReader | 3 | 04-03-2011 11:47 AM |