← Back to Stormify Documentation

converter

Custom converter for this facet's filter. When null (the default), the engine uses its built-in converter for the facet's type (e.g., boolean text query with LIKE for Type.TEXT, comparison parsing for Type.NUMERIC, …).

Set to a non-null value to override the default and translate the filter string into an arbitrary SQL fragment. Works on both field-backed facets (PagedList.addFacet) and SQL-backed facets (PagedList.addSqlFacet).

The number of ? placeholders in the returned fragment must exactly match the number of arguments pushed via the SqlArgsCollector; otherwise the next query build throws.

Setting this on a facet belonging to a stateless PagedQuery is forbidden — configuration is supposed to happen at setup time only.