public static String createFilter(BSimFilter filter,IDElasticResolution[] idres) throws ElasticException {
		ElasticEffects effects = new ElasticEffects();

		for (int i = 0; i < filter.numAtoms(); ++i) {
			FilterAtom atom = filter.getAtom(i);
			atom.type.gatherElasticEffect(effects, atom, idres[i]);
		}
		return effects.buildFunctionFilter();
	}
Container for collecting an elasticsearch query filter document from BSimFilter elements
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/elastic/ElasticEffects.java