07-24-2014, 04:54 PM | #1 |
Guru
Posts: 614
Karma: 8064562
Join Date: Aug 2009
Device: Sony PRS-505, Kindle 3 KB, iPad2
|
Question on search syntax
I've created a set of tags to indicate where I obtained a particular eBook. These use the format of source:xxxx such as source:BaenFree, source:ProjectGutenberg, source:Mobileread, source:Fictionwise, etc.
I want to locate any books in the library that don't have a source tag. I can do this: not tags:"=source:ArthurClassic" and not tags:"=source:Baen eBooks" and not tags:"=source:BaenFree" and not tags:"=source:Goodreads" and not tags:"=source:ManyBooks" and not tags:"=source:Mobileread" But what I really want is a generic search. I tried not tags:"=source:*" but that didn't work. Obviously I don't know how to indicate a match for any and all characters. (And I have a suspicion that this has something to do with regular expressions which I simply don't seem to be able to understand.) |
07-24-2014, 05:09 PM | #2 | |
Grand Sorcerer
Posts: 11,748
Karma: 7029855
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
not tags:"~^source:" Code:
not tags:"~^source:." |
|
07-25-2014, 04:08 PM | #3 | |
Guru
Posts: 614
Karma: 8064562
Join Date: Aug 2009
Device: Sony PRS-505, Kindle 3 KB, iPad2
|
Quote:
What I really want is to find only the books that have no tag that starts with "source:". These books may or may not have other tags. |
|
07-25-2014, 04:27 PM | #4 | |
Grand Sorcerer
Posts: 11,748
Karma: 7029855
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
07-26-2014, 12:26 AM | #5 | |
Guru
Posts: 614
Karma: 8064562
Join Date: Aug 2009
Device: Sony PRS-505, Kindle 3 KB, iPad2
|
Quote:
Thanks again for helping me out. |
|
07-26-2014, 12:56 AM | #6 |
null operator (he/him)
Posts: 20,598
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Hampshire Nanny - why not
Code:
not tags:"source:" It would exclude books that have a tag with «source:» in the middle or end of a tag, but do such tags actually exist in your library, e.g. Code:
«tomato source: bottle» «python source:» «source:» Code:
tags:"=source:" Last edited by BetterRed; 07-26-2014 at 12:59 AM. |
07-26-2014, 03:03 AM | #7 |
Grand Sorcerer
Posts: 11,748
Karma: 7029855
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@Hampshire Nanny: The search I suggested in post 2 should do exactly what you want, find any book that does not have a tag beginning with source:.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Either/Or Search Syntax? | PatNY | Library Management | 4 | 09-05-2013 06:15 AM |
command line syntax for search filter | cybmole | Calibre | 5 | 06-26-2013 07:55 AM |
Need help with search syntax | PatNY | Library Management | 6 | 05-20-2013 01:41 PM |
search question | Gregg Bell | Sigil | 11 | 04-03-2013 05:17 PM |
Help with search syntax please. | rwelbourn | Library Management | 3 | 04-16-2011 02:07 AM |