Implement "query" method on autocomplete widget.