Back-end implementation of filtering by codes