View Single Post
Old 01-08-2014, 01:37 AM   #454
Gary_M_Mugford
Groupie
Gary_M_Mugford has a complete set of Star Wars action figures.Gary_M_Mugford has a complete set of Star Wars action figures.Gary_M_Mugford has a complete set of Star Wars action figures.
 
Gary_M_Mugford's Avatar
 
Posts: 180
Karma: 299
Join Date: Jul 2010
Location: Brampton ON
Device: Kobo, Kindle3
Quote:
Originally Posted by eschwartz View Post
Searches can e done through the tag browser, to exactly match whichever item is chosen, and follow the syntax field:"=value" where the equals sign tells it to exactly match the quoted value. (yes, the = goes inside the quotes.)


Negation is easy, just add "not" before the term.

You can chain together search terms by holding down Ctrl while selecting multiple tag browser fields. Double clicking will negate the field and use the button "alter tag browser" to switch "search type when selecting multiple items" between "match all" and "match any".
I don't use the tag browser when 'constructing' my multiple searches onto a single line. Done in notepad and then copied as a single line. For example, (tags:"=Thriller" or tags:"=Suspense" or tags:"=Romantic Suspense" or tags:"=Suspense/Thriller" or tags:"=Action & Adventure") gives me back about 5900 books while adding the negation (or which I knew how to do this far) of ((tags:"=Thriller" or tags:"=Suspense" or tags:"=Romantic Suspense" or tags:"=Suspense/Thriller" or tags:"=Action & Adventure") and not (tags:"=Mystery") returns only 4000.

Two issues arise of course, the negation doesn't catch Mystery/Thrillers, of course. Using the tag browser to ctrl click on every Mystery variant is certainly doable, if daunting. Secondly, the negation I was talking about was in the regex/program area. So, strictly speaking, I was incorrect in attributing it strictly to my python ignorance. It's as much regex as Python. I use regex at it's most basic levels because my own programming relies on a masking language that is somewhere south of Regex and not exactly a full-blow implementation.

When, or if, you find away to break apart the tags and use smart matching so that I can construct my own set of logical statements to compare fragments, so that Mystery==Mystery/Thrillers==mysteries by comparing for myster, then I think I can carry the ball the rest of the way. It'll probably be slower'n molasses, but I'll adapt it.

An AI solution won't be perfect. But neither is my eyesight OR my memory these days.
Gary_M_Mugford is offline   Reply With Quote