View Single Post
Old 03-30-2023, 12:56 PM   #1
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: 11,044
Karma: 75555555
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
This would index everything unless 'noindex' is in #admintags:
Code:
program: if 'noindex' inlist $#admintags then 'false' else 'true' fi
Would anyone else use this? Is it even feasible?
ownedbycats is offline   Reply With Quote