add virtual column support to search query (#12720)