The aim of this paper is to explore D-dimensional theories of pure gravity whose space of solutions contains a certain class of anti-de Sitter waves including, in particular, Schrödinger invariant spacetimes. This leads to consider higher-order theories, and the natural case to start with is to analyze generic square-curvature corrections to the Einstein-Hilbert action. In this case, the Schrödinger invariant sector in the space of solutions arises for a special relation between the coupling constants appearing in the action. On the other hand, besides the Schrödinger invariant configurations, logarithmic branches similar to those of the so-called log-gravity are also shown to emerge for another special choice of the coupling constants. Int...