Help to convert hardcoded data values in Vega to ElasticSearch

I replaced mentions of p1 with _source.p1 inspired by this thread but it seems it doesn't work?