Sign up Sign in Samples Blog contact support
Nested $keyword in Search Fails

Support Ticket

open
 
+issue

{"match":"$keyword"} works fine for the :search card, but nesting even one level fails.  We would specifically like to set a search card to this: 

{"part":"General", "refer_to":{"match":"$keyword"}, "sort":"relevance", "view":"closed"}

And have it return all cards that refer to the matched keyword and have General as a part.  The keyword is provided by the standard query string ?utf8=✓&_keyword=RPG.

 

 

+example

For example, {"and":{"type":"Basic", "match":"$keyword"}} fails to match the given keyword, returning instead all basic cards.  Replacing the keyword manually in the WQL search works as intended.

 
+discussion

You're right that this should work, and I confirmed that it doesn't.  We'll look into it!