Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-09-2021, 04:41 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,135
Karma: 77213683
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Excluding part of a subsearch

My "Cleanup" search is made up of a lot of smaller subsearches, like this:

Code:
marked:true 
OR (search:"=Cleanup.Fanfic Issues") 
OR (search:"=Cleanup.Formats") 
OR (search:"=Cleanup.Metadata Cleanup")
Cleanup.Metadata Cleanup:
Code:
(search:"=Cleanup.Metadata Cleanup.Convert ISBNs")
OR (search:"=Cleanup.Metadata Cleanup.Missing Kobo collection") 
OR (search:"=Cleanup.Metadata Cleanup.Missing Language") 
OR (search:"=Cleanup.Metadata Cleanup.Missing Page Count")
OR (search:"=Cleanup.Metadata Cleanup.Missing Chapter Count)
However, if I search search:"=Cleanup" AND NOT search:"=Cleanup.Metadata Cleanup.Missing Chapter Count" it turns red presumably from a recursive loop.

Currently I just select all the subsearches except the excluded one. But is there a quicker way?
ownedbycats is offline   Reply With Quote
Old 07-09-2021, 05:39 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,488
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
This isn't really a recursion problem. Recursion means that X uses X, for example when the column evaluator must use the column evaluator to get a value.

What you describe is a case where the logical expression includes "A and not A", which as written is a contradiction. Your searches aren't so clear because the left-hand side includes other conditions not related to A, but it still could end up in the same place.

The answer: don't do that. You have found one way -- construct a search that doesn't use the same subsearch more than once. Another way that might work is to use restrictions, available in the virtual library tab, because they are fully evaluated before sub-searches are done.
chaley is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excluding articles Steven630 Recipes 2 06-29-2012 01:49 AM
Excluding terms in search LuvReadin Feedback 2 04-30-2012 11:44 AM
Seriously thoughtful How many unread ebooks do you own? (excluding freebee's) Angst Lounge 23 06-18-2009 10:15 PM


All times are GMT -4. The time now is 07:41 PM.


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