Will my approach work?

I have a search html form similar to a google search where I can search items and then paginate the results. Now I want to add location-based and category-based searches which would make searches in google appengine in my datastore, and I'm thinking of making a button named "filter" and when that button is pressed, a new menu appears beneath the search form where I can add a filter, either category or location, and then add another filter, either category or location, both filters are optional. If I do it this way then I can implement both filters same way. Do you think that it will work? enter image description here

Or is it better to try and make use of semantic-ui:s search functionalities where I can make suggestions via javascript http://semantic-ui.com/modules/search.html