Set the query when the user did select.
reverts a3db9c100dc8885662acc092d58d0b921e71780c