search: fix for improper suggestions merging
- Synchronizes internal twitter's typeahead query variable on query change.
- Deletes reseting query value to the complete input field value in special cases.
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>