![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,942
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
[Enhancement] FTS indexing by template
If Calibre's FTS indexing allows for selective indexing, an idea: Templates could be used to determine what gets indexed or not.
Anything set as 'true' is indexed, anything 'false' or null does not. Perhaps something like 'select' could be used to choose the specific formats to index. Some simple examples: This would only index books with epubs: Code:
program: if 'epub' in approximate_formats() then 'true' fi Code:
program: if 'noindex' inlist $#admintags then 'false' else 'true' fi ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Whats the use case? if you dont want certain books searched, you can exclude them from the actual FTS search already. What does it gain you to exclude them from indexing?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,942
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
My personal usecase would be preventing it from indexing very large PDF files that don't have text data to begin with (mostly just a waste of processing power and disk space by extracting all those images).
Last edited by ownedbycats; 03-30-2023 at 10:19 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
disk space usage is temporary, only while being indexed, which is a one time operation.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
FTS - Exporting the search | Comfy.n | Calibre | 3 | 07-24-2023 09:01 PM |
Question about FTS index | ownedbycats | Library Management | 2 | 12-02-2022 03:37 PM |
Are FTS results cached? | ownedbycats | Library Management | 2 | 09-13-2022 01:21 AM |
FTS database size? | slantybard | Calibre | 6 | 08-17-2022 04:09 AM |
FTS DB maintenance functions? | DrChiper | Calibre | 12 | 07-29-2022 07:34 PM |