Fixed logical error (the property is called 'search', not 'query')