Fixes bug 846376 - Made query_type default to contains in search.