When adding a new user query, all these indexes are undefined ('search', 'state', 'order', 'name').