Support Ticket

+status
answered
+tags
 

(These are included together on http://grouppatternlanguage.org/wagn/broken_search_example )

 

http://grouppatternlanguage.org/wagn/assigned_images finds captioned images where +Patterns points to Pattern cards with:

{"type": "captioned image",
  "plus": ["Patterns", {"refer_to": {"type": "Pattern"}} ]
}

http://grouppatternlanguage.org/wagn/images_missing_creator finds captioned images lacking a creator with:

{"type": "captioned image",
  "or": {"not": {"plus": "creator"},
         "plus": ["creator", {"content": "" } ] }
}

So why does http://grouppatternlanguage.org/wagn/combined_search_broken find the same cards as the latter (mostly not plussed to Patterns at all)? Its WQL:

{"type": "captioned image",
  "plus": ["Patterns", {"refer_to": {"type": "Pattern"}} ],
  "or": {"not": {"plus": "creator"},
         "plus": ["creator", {"content": ""} ] }
}

This works, see http://grouppatternlanguage.org/wagn/assigned_images_missing_creator :

{"type": "captioned image",
  "plus": ["Patterns", {"refer_to": {"type": "Pattern"}} ],
  "not": {"plus": ["creator", {"ne": ""} ] }
}

 

Don't know. I'd have to look at the SQL generated to figure this out.  Glad to have a good broken example.

 

But it looks to me like this works: http://grouppatternlanguage.org/wagn/Ethan_McCutchen+test_search


Thx for the WQL. Wagn might have to steal Perl's slogan - "There's more than one way to do it." :-)

 

I've updated the live search so it works, and moved the broken WQL to another card (and updated the link above to point to the new card).

  --John Abbe.....Thu Jan 20 10:49:59 -0800 2011


fix broken WQL combining plus and or

  --John Abbe.....Thu Jan 20 10:54:18 -0800 2011