replaced arguments to search initializer with options hash