Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-06-2018, 11:40 AM   #1
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
Either/Or search isn't working...

I may have missed a previous question here, because the site ignores "either" and "or" when searching for "either" or "or".

But searching "term1" (term2 OR term3) just gets a red search bar and ignores term2 and term3. And searching "term1" (term2|term3), as suggested here https://manual.calibre-ebook.com/regexp.html , also gets a red search bar and ignores term2 and term3.
MarjaE is offline   Reply With Quote
Old 04-06-2018, 03:07 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,872
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Which search bar?
What did you enter

Code:
red or blue
in the main search works and show all that have either red or blue

in REGEX searches (MDE,editor) it would be
Code:
red|blue
theducks is offline   Reply With Quote
Advert
Old 04-13-2018, 02:44 PM   #3
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
In the search bar at the top of the Calibre window.

And I tried OR first. B OR C works. A (B OR C) turns red.
MarjaE is offline   Reply With Quote
Old 04-28-2018, 10:36 PM   #4
Montana Harper
Zealot
Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.Montana Harper ought to be getting tired of karma fortunes by now.
 
Montana Harper's Avatar
 
Posts: 105
Karma: 2029154
Join Date: Sep 2013
Location: Pacific Northwest
Device: iPad Mini, iPhone 12, Kindle Paperwhite 3
Quote:
Originally Posted by MarjaE View Post
In the search bar at the top of the Calibre window.

And I tried OR first. B OR C works. A (B OR C) turns red.
I don't know if it's the optimal/suggested way of doing it, but I usually search for A, then click on the Virtual Library button and select "current search" (which clears the search bar while still showing only the items that fulfilled the search for A), and then do the search for B OR C. You can keep adding to the "current search" using this method, winnowing down by subsearch after subsearch if you want.
Montana Harper is offline   Reply With Quote
Old 04-29-2018, 12:35 AM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,616
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Montana Harper View Post
I don't know if it's the optimal/suggested way of doing it, but I usually search for A, then click on the Virtual Library button and select "current search" (which clears the search bar while still showing only the items that fulfilled the search for A), and then do the search for B OR C. You can keep adding to the "current search" using this method, winnowing down by subsearch after subsearch if you want.
Never knew that, maybe it's a bug

Thanks for the tip.

FTR - I normally wrap each term in parentheses, to make the expression rock-solid non-ambiguous.

BR
BetterRed is offline   Reply With Quote
Advert
Old 04-29-2018, 04:58 AM   #6
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: 11,759
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by MarjaE View Post
In the search bar at the top of the Calibre window.

And I tried OR first. B OR C works. A (B OR C) turns red.
FWIW and apologies for the late reply: the implied "and" doesn't currently work when using parentheses. The "and" must be explicit, as in
Code:
A and (B or C)
I will fix this.

And again FWIW: note that "and" takes precedence over "or", meaning that
Code:
A B C D E or F
is parsed as
Code:
(A and B and C and D and E) or F
*not*
Code:
(A and B and C and D) and (E or F)
BetterRed has it right: use parentheses to be sure you get what you are asking for.

EDIT: Fix will be in the next calibre release (3.23)

Last edited by chaley; 04-29-2018 at 11:08 AM.
chaley is offline   Reply With Quote
Reply

Tags
calibre, either/or search, or search, search


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to turn hyphens on? (isn't working) indieauthor83 Kindle Formats 2 03-06-2015 08:24 AM
plugboard file renaming isn't working BeccaPrice Calibre 7 01-20-2013 07:59 AM
New 'Calibre Style' Interface isn't working Fanchee Calibre 10 06-09-2012 11:30 PM
Why isn't Autoformat working on this book? Robotech_Master Workshop 0 01-04-2009 02:58 PM
The Moscow Times recipe isn't working. girlperson1 Calibre 4 12-01-2008 06:42 AM


All times are GMT -4. The time now is 10:06 AM.


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