@Override
	public void gatherElasticEffect(ElasticEffects effect, FilterAtom atom,
			IDElasticResolution resolution) throws ElasticException {
		effect.addDocValue("String path = doc['path'].size() == 0 ? null : doc['path'].value; ");
		String argName = effect.assignArgument();
		effect.addScriptElement(this, "(path != null) && path.startsWith(params." + argName + ')');
		effect.addParam(argName, atom.value);
	}
A BsimFilterType for filtering on functions by the starting path of their containing program.
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/filters/PathStartsBSimFilterType.java