b&w_logo Created with Sketch.
  • Get Started
  • Contact
  • Sign up
  • Sign in

sharks

get started

concepts

features

syntax

 

monkeys

intro

mods

REST API

 

platypuses

github

blueprints

tickets

 

everyone

support

ideas

contact

license

 

 
 

"and" search

help edit space_dashboard

Support Ticket

+status
help edit space_dashboard
answered
+tags
 

+issues

help edit space_dashboard

I have following search:

{"and": {"type":"Company", "refer_to":"_1"}}

here:

http://wagn.wikirate.org/Oil_Gas+Covered_Companies+Search_for_Covered_Companies

I also have a card "BP":

http://wagn.wikirate.org/bp

which is of the type "company", and is tagged with the Oil & Gas Industry card. That Oil & gas Industry card is the _1 reference. for some reason the BP card is not picked up, though. Thoughts?

 

help edit space_dashboard

I'm going to answer this a little pedantically in an attempt to "give the rod", not the fish.

 

First, you shouldn't the "and" here.  The search above is equivalent to

{"type":"Company", "refer_to":"_1"}

So at this point the question becomes, which of those two is causing the problem.

 

My guess is that if you did just this:

{"type":"Company"}

then bp would be returned, but if you did just this:

{"refer_to":"_1"}

Then you would get not BP, but something like "BP+Industry tags".  So the search you're looking for is more like:

{"type":"Company", "right_plus":["Industry tags", {"refer_to":"_1"}]}

...or, if you wanted any plus card, you could do:

{"type":"Company", "right_plus":[{}, {"refer_to":"_1"}]}

great, thanks for the detail, Ethan!

  --Philipp.....Tue Apr 03 22:06:48 +0000 2012