Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-02-2020, 11:03 AM   #1
ChrisMillward
Enthusiast
ChrisMillward began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Sep 2017
Device: PC
Multiple 'Not' searches fail to remove items

I have a Genre column called Subject which allows me to create a hierarchy of my technical books, articles and theses.It also allows me the flexibility of referencing the same book under multiple subjects if it's not clear where to put it. However, I find that when I try to eliminate certain items from the display using CTRL and selecting the red minus for each category it doesn't work properly. For example, if I wish to remove 'Articles' and 'Thesis' I get:

not#subject:"=Article" or not#subject:"=Thesis" as the search.

So, with 2 Subject examples entries

Article,Microscopy.Atomic Force (Item removed)
Microscopy.Atomic Force,Thesis (Item Not removed)

It's search stops after the first item "Article" is checked.

But search expression:

not(#subject:"=Article" or#subject:"=Thesis") works fine for all
ChrisMillward is offline   Reply With Quote
Old 07-02-2020, 12:20 PM   #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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you need and not or betweenth eexpressions, click the little preferences button at th ebottom left of the tag browser and change search type to match all items.
kovidgoyal is online now   Reply With Quote
Advert
Old 07-02-2020, 01:41 PM   #3
ChrisMillward
Enthusiast
ChrisMillward began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Sep 2017
Device: PC
Thank you Kovid. That works but at the same time reverses the sense of the green PLUS. I think, for me, I will use saved searches rather than keep changing the configuration. Incidentally when a saved search is executed the count shown remains at zero. I would expect it to show the number of matching items found.
ChrisMillward is offline   Reply With Quote
Old 07-02-2020, 01:56 PM   #4
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,444
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ChrisMillward View Post
Incidentally when a saved search is executed the count shown remains at zero. I would expect it to show the number of matching items found.
Showing an accurate match count would dramatically affect performance. In the next release the zero goes away, showing nothing.
chaley is offline   Reply With Quote
Old 07-02-2020, 02:51 PM   #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: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by chaley View Post
In the next release the zero goes away, showing nothing.
Nice! Thank you.
ownedbycats is offline   Reply With Quote
Advert
Old 07-03-2020, 03:58 AM   #6
ChrisMillward
Enthusiast
ChrisMillward began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Sep 2017
Device: PC
Not sure why it needed to go away or why it would affect performance as the number is already available on the bottom line [x of y books, z selected]. However, I have just updated and it has indeed 'gone away'
ChrisMillward is offline   Reply With Quote
Old 07-03-2020, 04:21 PM   #7
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: 10,970
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by ChrisMillward View Post
Not sure why it needed to go away or why it would affect performance as the number is already available on the bottom line [x of y books, z selected]. However, I have just updated and it has indeed 'gone away'
It was one of my requests; I asked here about the ability to cache the book count and also brought up the idea of just hiding the zeros entirely.

Saved searches can sometimes be very complex. For instance, I use this one for "books to read again" (mostly books I haven't read since last year or stuff with no last-read date, but it excludes a bunch of stuff too so I don't get stuff like game manuals or books I thought were crap):

Code:
(#read:true AND #lastread:true AND #lastread:<365daysago AND (rating:">2" OR rating:false)) OR (#read:true AND rating:false AND #lastread:false AND (not tags:"=.Documentation and Manuals" and  not tags:"=.Magazines and Periodicals" and  not tags:"=.Nonfiction") AND not #fanficstatus:"=In-Progress")
And I wouldn't be surprised if other Calibre users have saved searches that make mine look mild. So having Calibre calculate the number of books that fits that every time you edit a book's metadata would make it chug a bit. So saved searches are brought up on-demand.

Last edited by ownedbycats; 07-03-2020 at 05:02 PM.
ownedbycats is offline   Reply With Quote
Old 07-04-2020, 06:12 AM   #8
ChrisMillward
Enthusiast
ChrisMillward began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Sep 2017
Device: PC
I see so it's the recalulation required every time the tag browser pane is updated for some other reason other than executing a specific saved search.
ChrisMillward is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove the end of feed items title Tigerix Recipes 2 05-19-2012 08:41 AM
How to remove unnecesary items in a text? Darkitow Workshop 4 05-26-2011 03:07 AM
Remove Items Added During Conversion BRGriff Recipes 4 05-19-2011 04:14 PM
remove saved searches ? cybmole Calibre 4 04-29-2011 03:12 PM
how to remove already pulled feed items? MarcDK Calibre 2 11-12-2010 09:30 AM


All times are GMT -4. The time now is 03:49 AM.


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