Issue #8660 by cableman: Added connection between socket and search queries