text field with comboBox

I would like to extend textField with a combo box. The use case is to have a search field in which you can also choose type of search. Here is a basic example what I would like to do:

Is it somehow possible instead seting combo box next to text field?

I personally would go for the HorizontalLayout wrapping both the text field and the combobox, and handle the behaviour there manually. You can style it with css to make it look similar to what you show in the link.