I'm looking to create a content search web part on the home page of a subsite that displays documents from the current site collection, matching a particular content type. I'd like to return only the documents of value X in one of the content type fields, matching an indexed property of the current subsite.

The query below returns the expected results when I explicitly specify the value of the content type's managed property I want to match (MERC02):

I can see all of the subsite's indexed properties when I query using the Sharepoint Query Search Tool, which returns the target property I want: CustomerIDOWSTEXT = MERC02

So far so good. But I can't figure a way to reference the current subsite's indexed property in the CSWP query. I'm thinking that the following query should work, but it returns no results. Is {site.x} scoped at the site collection level instead of the current web?

My goal in matching to the site's indexed properties is to avoid using property bags, and surface this info at the STS_Web level by using a custom content type and site columns assigned for the site's web part home page.

the correct variable is Site only. {Site.<property>} will be scoped to the current SPWeb only, if its site collection it should be {SiteCollection.<property>}
– Gautam ShethJul 17 '18 at 12:01

{Site.<property>} should be it, but I can't match on this. To simplify this, I defined a new query to return all documents in the site collection whose Title="Test" (which returns a few), and then created a new subsite called Test. The CSWP query I tried using site.<property> doesn't match... path:"sharepoint.mycompany.com/sites/customers" ContentTypeId:0x0101* Title:{site.SiteTitle} Also tried site.Title to no avail.
– KeithJul 17 '18 at 14:51