Card Search Documentation

The search bar supports searching across all card fields, specific fields, logical operators, grouping, exact matching, and negation.

Back to Card Database


URL-based Search

You can preload the search from the URL by adding ?q=... (or ?search=...) to the page address. For example, deckbuilder.html?q=rarity:Rare. The deck builder will use that query when the page loads.


Basic Search

Searching for a word searches the card name, rules text, card type, and set name.

QueryDescription
FireballFinds cards containing "Fireball".
HeroFinds cards containing "Hero".
"Draw 2 cards"Searches for the entire phrase.

Field Searches

Search only a specific field using field:value.

FieldAliasDescription
name-Card name.
text-Rules text.
typetCard type.
setsSet name.
rarityrCard rarity.
id-Card ID.

Examples

        name:Benji
        text:damage
        type:Character
        t:Hero
        set:Base
        s:BS26
        rarity:Rare
        r:Common
        id:BS26-001
        

Exact Matches

Use single quotes to require an exact match instead of a partial match.

QueryMeaning
rarity:Rare Matches "Rare", "Rare Foil", etc.
rarity:'Rare' Matches only exactly "Rare".
name:'Benji' Card name must be exactly "Benji".

Phrase Searches

Double quotes keep multiple words together as one search term.

        "Draw 2 cards"

        name:"Dark Mage"

        text:"Deal 3 damage"
        

Negation

Exclude cards using NOT or a leading -.

QueryDescription
NOT rarity:Common Exclude Common cards.
-rarity:Common Same as above.
Hero -text:Flying Hero cards without "Flying".

AND

Both conditions must match.

        Hero AND Rare

        type:Character AND rarity:Rare

        Hero Rare
        

Adjacent terms automatically imply AND.


OR

Either condition may match.

        Rare OR Legendary

        type:Hero OR type:Villain
        

Parentheses

Use parentheses to group expressions.

        (Hero OR Villain) AND Rare

        (type:Character OR type:Item)
        AND
        NOT rarity:Common
        

Operator Precedence

Operators are evaluated in this order:

  1. Parentheses ( )
  2. NOT
  3. AND
  4. OR

Example:

        Hero OR Villain AND Rare
        

is interpreted as:

        Hero OR (Villain AND Rare)
        

Examples

        Hero

        Hero Rare

        Hero AND Rare

        Hero OR Villain

        (Hero OR Villain) Rare

        name:Benji

        name:'Benji'

        text:"Deal 2 damage"

        set:BS26

        rarity:Rare

        rarity:'Rare'

        NOT rarity:Common

        -rarity:Common

        (type:Character OR type:Item) AND rarity:Rare