View Single Post
Old 12-31-2013, 06:35 AM   #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,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by diazlaz View Post
HI All,

Is there a possibility in the search or advance search to utilize bitwise operators during a search in calibre. I' want to utilizing a integer field, and use bitwise operators to embed flags and able to search for the states.

Thanks!
Laz.
Nope, not supported.

I do wonder why you want to do it with integers. Wouldn't using a custom column "like tags" with the flags as strings do the same thing in a much more readable way? Something like "#state:=read and #state:=purchased" instead of "(state & (READ|PURCHASED)) == (READ|PURCHASED)"
chaley is offline   Reply With Quote