ontehfritz / api.mtgdb.info

Project closing first of August 2015
http://www.mtgdb.info/
MIT License
36 stars 8 forks source link

Advanced search #73

Closed ontehfritz closed 10 years ago

ontehfritz commented 10 years ago

As per @jesseflorig

[[col][match type][query]] + [[col][match type][query]] + [...]

So a search for black and red cards of type "knight" that are uncommon would be:

"c:rb+t:knight+r:u"

Or a blue only creature with flying that costs less than 3 mana with "cloud" in the name:

"c=u+t:creature+d:flying+cc<3+n:cloud"

column legend: c color t type/subtype r rarity mc mana cost cc converted cost n name d description/text f flavor text po power to toughness lo loyalty l legality s set a artist

compare legend: : like/contains = exact match ! not

gt < lt = gt or equal <= lt or equal

ontehfritz commented 10 years ago

"+" replace with "and" "or"

ontehfritz commented 10 years ago

Only "and" logic support. First cut of code done. Will be in production next release! Closing this if any bugs with this, we will open an new issue.