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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-14-2010, 07:03 AM   #1
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Searching in binary field

I just ran into a problem trying to use a custom binary column for distinguishing between my study textbooks and, well, every other ebook. My plan was to use the column to indicate whether a specific book is a textbook (=true) or not (=false), and then build a saved search to restrict library view to only textbooks or only every other kind of book. But while building the search pattern I ran into the problem: I've found that searching for col:true returns all books with a set value, be it true or false, while col:false returns every undefined book. But searching for actual values doesn't work: Every time I try to search for col:yes, col:no or any variation I could think of I'd get an empty search result (and yes, there are some books with each value set). So, my question is: How do you actually search for books with a specific value in a binary metadata field?
Manichean is offline   Reply With Quote
Old 06-14-2010, 07:16 AM   #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: 40,026
Karma: 17765146
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes and no are the correct way, I just tried it, works for me. Are you sure you're not forgetting the leading #?
kovidgoyal is offline   Reply With Quote
Advert
Old 06-14-2010, 07:29 AM   #3
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by kovidgoyal View Post
Yes and no are the correct way, I just tried it, works for me. Are you sure you're not forgetting the leading #?
Well, I was being kind of stupid, I think. I just found out why it didn't work: I'm using the german version of Calibre, and for some reason I have to use "Ja/Nein" as search queries as opposed to yes/no, which I personally find to be a bit counterintuitive, by the way (So, the actual queries I'm using now are "#fach:Ja" and "#fach:Nein", obviously without the quotes.)

Thanks anyway for your help.

EDIT: Actually, this goes to show that I can't think of enough variations on a search pattern to get it to work

Last edited by Manichean; 06-14-2010 at 07:34 AM.
Manichean is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching OnKindle Field nynaevelan Calibre 6 10-28-2010 07:17 PM
Searching on Ratings Field nynaevelan Calibre 3 05-29-2010 06:44 PM
0.6.45 Binary installation failure lamparty Calibre 14 03-19-2010 02:19 AM
Problem with binary install ferridder Calibre 1 11-18-2008 02:27 PM
Binary Install of calibre Glenendale Calibre 1 11-10-2008 01:58 PM


All times are GMT -4. The time now is 08:50 PM.


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