Handling text fields in advanced search