View Single Post
Old 10-10-2013, 10:46 AM   #6
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: 31,337
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by silentguy View Post
Was I being that confusing? Sorry. Okay, let's try this again.


My #read column is a tristate yes/no column and I use all three values. When you search in this column it works like this:

#read:yes finds books where it is set to yes
#read:no finds books where it is set to no
#read:false finds books where it is not set
#read:true find books where it is set, ie where it is yes or no

so far, so good, this is logical and follows the way the search works for any field.

Now for MY PROBLEM: when creating catalogs, there is a prefix option that does not follow this logic. There you have 4 predefined search values and they return the following :
#read:true finds books where it is set to yes
#read:false finds books where it is set to no or where it is not set
#read:undefined finds no books
#read:"" finds no books either.

Long story short, I think there is a small bug in the prefix search.
See post #2 (i used a generic #name in the example because there are MR readers that abhor having field names dictated to them)

Empty Quotes will not work on a logical field, they are not nil strings
theducks is offline   Reply With Quote